env is a binary that will execute your command in a modified environment -- man env is your friend!
Using env to run perl might be very slightly slower - but I doubt you will be able to measure the impact.#!/usr/bin/env -i perl # executes perl in an empty environment - no PERL5ENV etc #!/usr/bin/env -i PERL5LIB=~/src perl # executes perl in with only specified PERL5ENV etc
Regards,
Jeff
In reply to Re: (OT) Perl command line interpolation
by jaa
in thread (OT) Perl command line interpolation
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |