Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Making an Existing Class a Singleton

by moritz (Cardinal)
on Jan 23, 2008 at 17:06 UTC ( [id://663837]=note: print w/replies, xml ) Need Help??


in reply to Re: Making an Existing Class a Singleton
in thread Making an Existing Class a Singleton

If you use perl 5.10 (or want to start thinking in that direction) the variable $singleton is a perfect candidate for a state variable.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-19 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found