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 ( [id://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?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found