Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: (OT) Perl command line interpolation

by jaa (Friar)
on Jun 15, 2006 at 12:31 UTC ( #555483=note: print w/replies, xml ) Need Help??


in reply to (OT) Perl command line interpolation

This is not really a perl question - the shebang line is used by the shell to determine which command will handle the script.

env is a binary that will execute your command in a modified environment -- man env is your friend!

#!/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
Using env to run perl might be very slightly slower - but I doubt you will be able to measure the impact.

Regards,

Jeff

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://555483]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2019-11-22 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (112 votes). Check out past polls.

    Notices?