laziness, impatience, and hubris | |
PerlMonks |
Re: export environment variableby codeacrobat (Chaplain) |
on Mar 04, 2009 at 07:15 UTC ( [id://748019]=note: print w/replies, xml ) | Need Help?? |
Setting $ENV{PORT}=45243; is all you need.
External programs executed by backticks or system will use the new variable.
Starting subshells with system or á la `export PORT=12345)` is really pointless, the variable is no longer visible in the remaining perlscript.
In Section
Seekers of Perl Wisdom
|
|