The #! line is a general mechanism for an executable script to name its interpreter to the system. Perl does look at it and will respect flags on the line, even if you execute your script via "perl myscript".
However, the part where it specifies the path to perl only has effect when the script is executed directly as in "myscript".
Your mileage may vary on non-unix systems.
In reply to Re: #! -- why doth thou exist?
by herveus
in thread #! -- why doth thou exist?
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |