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

Well, you really shouldn't be exporting this object if its not a singleton

use EXAMPLE(); my $poop = EXAMPLE->new; $poop->my_example_method; print "mission accomplished\n";

Replies are listed 'Best First'.
Re^6: symbols, scope, and mod_perl
by acanfora (Novice) on Oct 01, 2012 at 12:18 UTC
    If you have a look at the code I posted, you can see that the trick I am testing consists actually in putting an instance of the object in the "main" namespace without using Exporter and without declaring/instantiating the object from the cgi. In fact the class calls its own constructor when you use it.

      If you have a look at the code ...

      What makes you think I did not?

      I did look, I even ran the code, and I even had no problem with it like I showed

        Ah ok, you are _that_ anonymous monk, sorry. Can you have a look at your Apache error log? Do you see any segmentation fault?