Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^5: passing env{} variable to child fails on linux,works on windows

by andal (Hermit)
on Jan 14, 2013 at 09:19 UTC ( #1013173=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    Currently, on all platforms except MSWin32, all system calls (e.g., us
    +ing system() or back-ticks) made from threads use the environment var
    +iable settings from the main thread. In other words, changes made to 
    +%ENV in a thread will not be visible in system calls made by that thr
        system("FOO=$msg; echo \$FOO"); # Outputs 'hello' to STDOUT
    On MSWin32, each thread maintains its own set of environment variables

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013173]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2017-11-18 12:27 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (277 votes). Check out past polls.