Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^5: symbols, scope, and mod_perl

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

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";

Comment on Re^5: symbols, scope, and mod_perl
Download Code
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?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2015-12-01 16:04 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (18 votes), past polls