Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: export environment variable from a perl program

by cfreak (Chaplain)
on Feb 02, 2005 at 17:47 UTC ( [id://427349]=note: print w/replies, xml ) Need Help??


in reply to export environment variable from a perl program

Other posters are correct, it can't be done the way you're trying. However you could make your perl program print out what you want in VAR1 and in your shell script do:

export VAR1 = `/your/perl/script.pl`;

Hope that helps

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found