The script I posted for you should not generate that error message unless the path to perl is wrong or you uploaded the script in binary mode instead of text mode. It looks like Tie::File will work with perl 5.005.
tie::File 500 Internal Server Error???
Collapse
X
-
I tried, and it is wierd. When I upload it in binary mode, I got the errror"prematur e end of script headers". And when I uploaded it in ASCII mode, I got "Can't locate warnings.pm in @INC " again. But our web administrator had already install the Tie module. Oh, my, this seems like endless. I really really appreciate your help, KevinADC.Comment
-
The problem has to be the very old version of perl you are using. You are trying to write modern code using an outdated version of perl. Evidently the warnings pragma is not included with that version of perl:
use warnings;
remove that and use the -w switch on the shebang line:
#!/usr/bin/perl -w
but the best solution is use a newer version of perl. You will continue to have problems and you will just get frustrated. Ask the tech guys to upgrade perl if at all possible.Comment
Comment