#!/bin/sh exec perl -x $0 #!perl # your perl code goes here
"But why not use #!/usr/bin/env perl?", I hear you cry.
Because env isn't always in /usr/bin - it's in /bin on some obscure platforms - and there can be "issues" with passing arguments to the executable via env.
In reply to Re^3: Issue with #!usr/bin/perl
by DrHyde
in thread Issue with #!usr/bin/perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |