Variable::Lazy::Guts - Variables that lazily initialize themselves
Version 0.02
lazy $self->{foo}, [], sub { return life_universe_everything(); }; ...do something else $self->{foo}->bar();
This is the module implementing the magic of Variable::Lazy. You should probably not be using this yourselves. No kind of API stability is guaranteed.
Adds lazy magic to a variable. You don't want to assign this immidiately to a new variable, as this will trigger reification. $arguments is a arrayref to the arguments for $subroutine.
Leon Timmermans, <leont at cpan.org>
<leont at cpan.org>
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, 2010 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.