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

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

by RichardK (Priest)
on Jan 12, 2013 at 16:11 UTC ( #1013048=note: print w/ replies, xml ) Need Help??


in reply to passing env{} variable to child fails on linux,works on windows

I've just tried this on Fedora 17, 64 bit with perl v5.14 and it works for me, if that helps :)

Here's the test code I ran.

use v5.14; $ENV{TEST_FLAG}=1; my $test = `env`; say $test; say 'OK' if $test =~ /TEST_FLAG=/;


Comment on Re: passing env{} variable to child fails on linux,works on windows
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2014-08-28 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls