Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-12-19 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (83 votes), past polls