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

Re: How do I set env. Variables from Perl with shell script

by december (Pilgrim)
on May 04, 2009 at 14:16 UTC ( #761736=note: print w/replies, xml ) Need Help??


in reply to How do I set env. Variables from Perl with shell script

You can't. If you execute the shell script from the perl script, it's a child process and the shell variables won't ever make it into perl's "upstream" environment.

Perhaps you can manually parse the shell script and look for the INC(LUDE) variable, and then set the ENV from within perl manually based on the value found in the shell script... Depending on where exactly you want to with this, it might do the trick.

  • Comment on Re: How do I set env. Variables from Perl with shell script

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2022-01-22 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (60 votes). Check out past polls.

    Notices?