tie::File 500 Internal Server Error???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #16
    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.

    Comment

    • casybay
      New Member
      • Oct 2007
      • 35

      #17
      KevinADC, yes, I did use WS_FTP32 binary mode to upload the file, but seems other pl files are ok, only the file I am working on has problem T_T And this FTP program has twp options: ASCII and binary.

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

        #18
        Try uploading in ASCII mode which is text mode. If that does not work, I am not sure what the problem is unless the path to perl is wrong.

        Comment

        • casybay
          New Member
          • Oct 2007
          • 35

          #19
          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

          • KevinADC
            Recognized Expert Specialist
            • Jan 2007
            • 4092

            #20
            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

            • casybay
              New Member
              • Oct 2007
              • 35

              #21
              Yeah, finally it works. Thank you so............. ......much, KevinADC.

              Comment

              Working...