Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
We don't bite newbies here... much
 
PerlMonks  

Re: A metaclosure? Howto?

by Biker (Priest)
on May 13, 2002 at 10:25 UTC ( #166136=note: print w/ replies, xml ) Need Help??


in reply to A metaclosure? Howto?

I'd solve this using a class. The object instantiated would be initialized with a given value by the new() method (or by a default value) and then the value would be manipulated with a method, that would apply the required changes to the value and return the updated value.

I would also ask myself the question if I should implement this as a Singleton class, all depending upon the needs at hand.


Everything went worng, just as foreseen.


Comment on Re: A metaclosure? Howto?
Download Code

Log In?
Username:
Password:

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

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

    April first is:







    Results (556 votes), past polls