Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: export environment variable

by codeacrobat (Chaplain)
on Mar 04, 2009 at 07:15 UTC ( [id://748019]=note: print w/replies, xml ) Need Help??


in reply to export environment variable

Setting $ENV{PORT}=45243; is all you need. External programs executed by backticks or system will use the new variable.
perl -e '$ENV{PORT}=1234; system q(echo $PORT)'
Starting subshells with system or á la `export PORT=12345)` is really pointless, the variable is no longer visible in the remaining perlscript.

print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-24 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found