Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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?
[LanX]: What about Czech an Chechen ambessy?
[AnomalousMonk]: LanX: Rama had (has?) a high (much higher than typical asteroid) rate of axial (again, unusual, I think) spin for its artificial gravity.
LanX pity there is no Germs embassy ...
[choroba]: LanX We merged them to save money.
[LanX]: AnomalousMonk: yeah the asteroid but not the god, right?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (13)
As of 2017-11-22 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (327 votes). Check out past polls.

    Notices?