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?

Replies are listed 'Best First'.
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...