Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Changing parent process environment variable

by ikegami (Patriarch)
on Dec 20, 2007 at 21:17 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2023-02-06 00:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (33 votes). Check out past polls.

    Notices?