Friday, 26 September 2008

shebang line

Don't use
#! perl
Use
#! /usr/bin/env perl
or
#! /actual/path/to/perl
This is because the first version cannot be executed like so:
shell> ./your_perl_program.pl
You must do:
shell> perl your_perl_program.pl

No comments: