Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Keep It Simple, Stupid
 
PerlMonks  

Re: Perl Singletons

by atcroft (Abbot)
on Jul 23, 2002 at 13:16 UTC ( [id://184498]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Perl Singletons

Although I was aware of the concept of such an object, I was unfamiliar with the term. Forgive my lack of knowledge in the ways of objects and OO, but isn't that similar to class values?

You suggest that such an object can be used for limiting connections, for example, but did not mention how. Would you simply set a flag variable to say if or how many connections were in use? If that is so, how would you handle concurrent attempts, or attempt to prevent race conditions?

My thanks to you for the instruction of your posting, as well also to those who commented.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://184498]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.