Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Does there exist a CPAN module for lazily initialized variables?

by lachoy (Parson)
on Jul 14, 2004 at 18:52 UTC ( #374390=note: print w/ replies, xml ) Need Help??


in reply to Does there exist a CPAN module for lazily initialized variables?

Object::Realize::Later does not explicitly deal with tied variables but seems to be flexible enough to do what you want.

Chris
M-x auto-bs-mode


Comment on Re: Does there exist a CPAN module for lazily initialized variables?
Re^2: Does there exist a CPAN module for lazily initialized variables?
by jryan (Vicar) on Jul 14, 2004 at 19:04 UTC

    It almost seems... *too* flexible. :) My whole jive is that I don't want to go through the trouble of creating these Singleton classes, which it seems like I'd have to do with Object::Realize::Later anyways. Thanks for the tip, though; with my extremely inept searching abilities, I don't think I would have found Object::Realize::Later on my own.

    Update: Another thought: I might be able to use Object::Realize::Later to create only a small single class that handles the automatic initialization... although that also might be more trouble than its worth...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-09-01 19:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (17 votes), past polls