Tuesday, 22 November 2011

Portable shebang (for Perl)

What do you do when you have a Perl script that starts with:

#!/somewhere/stupid/perl

?


Just run the script with perl like this:

$ perl my_stupid_scipt.pl


How do you avoid writing scripts like that? Do the following:


#!/usr/bin/env perl

Post a Comment