![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: #!/usr/bin/perl vs. -*- perl -*-by QM (Parson) |
on Jan 20, 2009 at 22:16 UTC ( #737701=note: print w/replies, xml ) | Need Help?? |
For casual scripts, I've always used the following:
(I've forgotten where I stole this from.) Is there a "best" way to get whichever perl is in your path? I hadn't seen the env version before, nice. I also agree, in many cases the shebang line should point to a fixed Perl. I can even see an argument for not giving any shebang hints, and always invoking the perl binary explicitly from an external source. -QM
In Section
Seekers of Perl Wisdom
|
|