Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2018-03-24 23:57 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (299 votes). Check out past polls.