in reply to Re: Wanting Validation for Smacking my Sysadmin (500 error problem)
in thread Wanting Validation for Smacking my Sysadmin (500 error problem)

Every line in DOS text file ends with "0D0A" sequence, while UNIX file contains only "0A" at the end of each line. You can check it with 'od' command:

od -t x filename.pl

--dda

  • Comment on Re: Re: Wanting Validation for Smacking my Sysadmin (500 error problem)

Replies are listed 'Best First'.
Re: Wanting Validation for Smacking my Sysadmin (500 error problem)
by Petras (Friar) on Jan 23, 2003 at 13:58 UTC
    Should od be bundled with Perl? It's not available from my command prompt in Dos and when I PuTTY into the server.

    Google came back with some nice french poetry and a few metal fabricators :~)
      od (Octal Dump) should be bundled with any unix. It is not related to perl. And in DOS (Windows) you can use FAR manager (www.rarsoft.com) to view files in HEX mode (it has a lot of nice other features).

      --dda

        Robartes actually got me where I needed to be, but I'm still learning so I'm going to eat your brains a little more. I opened the file with WinHex (hey, it's free!) and, sure enough, DOS file endings. How do file endings play into the compliling and execution of cgi scripts? You might have to talk over my head, but I'll understand someday ;)

        Thanks
        -Petras