Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by fullermd (Priest)
on Apr 15, 2016 at 18:38 UTC ( #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
Node Status?
node history
Node Type: note [id://1160563]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2020-10-26 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (252 votes). Check out past polls.

    Notices?