NAME
Variable::Lazy::Guts - Variables that lazily initialize themselves
VERSION
Version 0.02
SYNOPSIS
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.
FUNCTIONS
lazy($variable, $arguments, $subroutine)
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.
AUTHOR
Leon Timmermans, <leont at cpan.org>
BUGS
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.
SUPPORT
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
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
COPYRIGHT & LICENSE
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.