in reply to Re: Execute a Perl code without ".pl" extension
in thread Execute a Perl code without ".pl" extension

sorry to disappoint you, but the canonical path to env is /usr/bin so please write
#!/usr/bin/env perl
And yes, that should work on any *nix system, according to somme standard which name I conveniently forgot (so you can't check me on this ;-), but (seriously!) remember to have read about.