http://www.perlmonks.org?node_id=996652


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

Replies are listed 'Best First'.
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 :)