NAME
Devel::OnDestruct - Call a subroutine on destruction of a variable.
VERSION
Version 0.01
SYNOPSIS
use Devel::OnDestruct;
on_destruct $var, sub { do_something() };
on_destruct @array, sub { do_something_else() } };
FUNCTIONS
This module contains one function, which is exported by default.
on_destruct $variable, \⊂
This function adds a destructor to a variable. The destructor will work not just on scalars but also on arrays and hashes.
AUTHOR
Leon Timmermans, <leont at cpan.org>
BUGS
Please report any bugs or feature requests to bug-devel-ondestruct at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Devel-OnDestruct. 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 Devel::OnDestruct
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
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.