*shrug*. I don't think the purpose of the tie here is cuteness, but to actually separate the initialization details from the code. (Also, I'm not using globals, but package-scoped lexicals declared with my). I guess I could write a module that supported either interface (tied or functional). Hell, most of the code for both cases is already written in this very thread!
In reply to Re^8: Does there exist a CPAN module for lazily initialized variables?
by jryan
in thread Does there exist a CPAN module for lazily initialized variables?
by jryan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |