Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: get environment variables from a bourne file

by SimonClinch (Deacon)
on May 12, 2011 at 14:26 UTC ( #904422=note: print w/replies, xml ) Need Help??


in reply to get environment variables from a bourne file

something like:
%ENV = ( %ENV, map { /^(\w+)\=(.*)$/; } split( /\n/, `. /usr/local/env.sh; env` ) );

One world, one people

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2018-02-18 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (256 votes). Check out past polls.

    Notices?