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

Re^11: symbols, scope, and mod_perl

by Anonymous Monk
on Oct 01, 2012 at 13:03 UTC ( #996652=note: print w/ replies, xml ) Need Help??


in reply to Re^10: symbols, scope, and mod_perl
in thread symbols, scope, and mod_perl

Maybe with the segfault -- but the persistence, well, you could write

use EXAMPLE; EXAMPLE->import;
then on each request my_dirt_sneaky_object_reference would be ->new


Comment on Re^11: symbols, scope, and mod_perl
Download Code
Re^12: symbols, scope, and mod_perl
by acanfora (Novice) on Oct 01, 2012 at 13:37 UTC
    import is called implicitly by use.
      yes, once, didn't you say you wanted a fresh one upon each request?
        Great remark, indeed :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2014-12-22 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls