Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Changing parent process environment variable

by ikegami (Patriarch)
on Dec 20, 2007 at 21:17 UTC ( [id://658267]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    chomp( my @cmds = `child` );
    foreach my $cmd (@cmds) {
       next unless /^set\s+(\S.*?)=(.*)/i;
       $ENV{$1} = $2;
    }
    
  2. or download this
    for /f "usebackq delims=" %%f in (`child`) do %%f
    
  3. or download this
    echo set VAR=5
    
  4. or download this
    print("set VAR=5\n");
    

Log In?
Username:
Password:

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

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

    No recent polls found