Perl CGI scripts - stripping out unwanted carriage returns etc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I have a number of perl CGI scripts which I wrote some time ago (and
which are working successfully on my website). I've set up a local
server on which to do some development work on the scripts but I can't
get them to work - the error log says:
No such file or directory: exec of '/var/www/cgi-bin/script.cgi' failed
Premature end of script headers: script.cgi     etc

By comparing two identical very simple cgi scripts (one works, the other
doesn't), I've traced the problem to, apparently, unwanted carriage
returns which have somehow got into the perl text files. Is there a
quick and easy way (ie piece of software) to strip out these things, or
do I have to do it manually?
Thanks for any help,
Andy


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux