Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
We don't bite newbies here... much
 
PerlMonks  

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
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-04-18 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (473 votes), past polls