Don't ask to ask, just ask | |
PerlMonks |
Re: /usr/bin/perl -w?by chas (Priest) |
on Jun 20, 2005 at 21:14 UTC ( [id://468492]=note: print w/replies, xml ) | Need Help?? |
And with regard to ysth's reply, I once noted that if my shebang line was #!/usr/bin/perl followed by a carriage return (due to editing the script on a Windows machine and then transferring to Linux), the script exited with an error that the command was not found. (Putting -w at the end of the line fixed the problem, because then the carriage return was ignored as an unknown option, I think.) You can check if the return is there by editing the script in binary mode with vi(m) or emacs, etc. chas
In Section
Seekers of Perl Wisdom
|
|