Variable::Lazy - Lazy variables
Version 0.02
lazy my $var = { foo() }
This module implements lazy variables. It's different from other similar modules in that it works completely transparant: there is no way to see from the outside that the variable was lazy, and there is no speed penalty once the variable has been evaluated.
The reification is triggered more easily than most other laziness modules. Unlike other modules it doesn't use referential semantics, so assigning the value to an other variable triggers it. This is something to keep into account.
Leon Timmermans, <leont at cpan.org>
<leont at cpan.org>
This is an early release, bugs are to be expected at this stage.
Please report any bugs or feature requests to bug-variable-lazy at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Variable-Lazy. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-variable-lazy at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Variable::Lazy
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Variable-Lazy
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Variable-Lazy
CPAN Ratings
http://cpanratings.perl.org/d/Variable-Lazy
Search CPAN
http://search.cpan.org/dist/Variable-Lazy
Copyright 2009 Leon Timmermans, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Variable::Lazy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Variable::Lazy
CPAN shell
perl -MCPAN -e shell install Variable::Lazy
For more information on module installation, please visit the detailed CPAN module installation guide.