Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: get environment variables from a bourne file

by SimonClinch (Chaplain)
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


Comment on Re: get environment variables from a bourne file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-12-22 00:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (110 votes), past polls