Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: mod_perl2 interactive startup

by perrin (Chancellor)
on Aug 18, 2009 at 13:36 UTC ( #789458=note: print w/replies, xml ) Need Help??


in reply to Re^2: mod_perl2 interactive startup
in thread mod_perl2 interactive startup

The perl interpreter is not reset. If you put something in a global, it will still be there during the restart.

Replies are listed 'Best First'.
Re^4: mod_perl2 interactive startup
by amino (Initiate) on Aug 18, 2009 at 18:59 UTC
    How do you do that?

    I tried saving data in a global in the startup.pl and in a package global but when the restart happens they are uninitialized.

    My tests and this line, "During the restart, Perl is completely destroyed and started again." from here leave me at a loss to how to do that.
      I thought it worked to use $My::Variable, but maybe I'm remembering it wrong.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://789458]
help
Chatterbox?
[choroba]: I don't even remember the beginning
[choroba]: someone told me to use perl instead of sed for something, and several years later, I'm developing a huge Tk application
[Discipulus]: choroba started in primary school to get some advantage in the future..
[choroba]: nono, I programmed in Basic at the primary school, on my Commodore 116/16
[Discipulus]: ;=)
[choroba]: then learned some assebly on the same machine, then moved to my father's PC (XT with a Hercules card), used Turbo Pascal a lot
[choroba]: I started with *nix at the University, we had some Sparcs and Linux machines
[choroba]: that was around 1994 or 95

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2018-06-22 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (123 votes). Check out past polls.

    Notices?