Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: What's #! got to do with it?by b10m (Vicar) |
on Jan 16, 2004 at 21:19 UTC ( [id://321909]=note: print w/replies, xml ) | Need Help?? |
The shebang specifies what kind of program needs to interpret the code. Besides Perl, this can be python, bash, sh, etc. Dropping the shebang, makes your shell clueless. What to do with the code? Presumably, you tried $ perl script instead of $ ./script. In the first example, you just feed perl the script. In the second case, you tell your shell: "Hey, execute this script!". In that case, it would be nice if your shell knew what kind of code it was :)
-- b10m
In Section
Seekers of Perl Wisdom
|
|