Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: keeping something in memory after the end of script

by fullermd (Priest)
on Apr 15, 2016 at 18:38 UTC ( [id://1160563]=note: print w/replies, xml ) Need Help??


in reply to Re: keeping something in memory after the end of script
in thread keeping something in memory after the end of script

Not really (at least, not without some sort of nutso magic trick). The shell would be the parent process of your script; you can't mess with your parent's environment.

  • Comment on Re^2: keeping something in memory after the end of script

Replies are listed 'Best First'.
Re^3: keeping something in memory after the end of script
by NetWallah (Canon) on Apr 16, 2016 at 00:32 UTC
    Point taken (++), but the magic is not too achene:
    ~$ chksum=$(perl -e'print qq|Set by perl|'); echo BASH says chksum is +$chksum BASH says chksum is Set by perl

            This is not an optical illusion, it just looks like one.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found