in reply to Perl problems

I have heard that this kind of problem may be caused by ftp'ing the file in binary mode instead of text mode. Crazy? maybe if you are an old time Solaris admin, but this is what _appears_ to cause the problem on Linux

Replies are listed 'Best First'.
RE: RE: Perl problems
by Anonymous Monk on Mar 09, 2000 at 17:04 UTC
    yes, could be a transfer problem. Try to find out if the script first line contain at the end a \r character. You can see that viewing the script with some editor (joe, vim etc...), or viewing hexa). Also could be a path problem.
RE: RE: Perl problems
by httptech (Chaplain) on Mar 09, 2000 at 18:02 UTC
    If it is a ascii-binary transfer problem, you can quickly fix it (without uploading again) with perl -pi -e 's/\r//g' script.pl If that's not the problem, running the above command won't hurt anything anyway.