Devel::Declare -
Look at the tests. This module is currently on CPAN to ease smoke testing and allow early adopters who've been involved in the design to experiment with it.
use Devel::Declare qw(list of subs);
Calls Devel::Declare->setup_for(__PACKAGE__ => \@list_of_subs);
no Devel::Declare;
Calls Devel::Declare->teardown_for(__PACKAGE__);
Devel::Declare->setup_for($package => \@subnames);
Installs declarator magic (unless already installed) and registers "${package}::$name" for each member of @subnames
Devel::Declare->teardown_for($package);
Deregisters all subs currently registered for $package and uninstalls declarator magic if number of teardown_for calls matches number of setup_for calls.
Matt S Trout - <mst@shadowcat.co.uk>
Company: http://www.shadowcat.co.uk/ Blog: http://chainsawblues.vox.com/
This library is free software under the same terms as perl itself
To install Devel::Declare, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Declare
CPAN shell
perl -MCPAN -e shell install Devel::Declare
For more information on module installation, please visit the detailed CPAN module installation guide.