Voo - Run functions at compile time, not runtime!
This module uses lexical subs (enabled with use v5.26; or use feature 'lexical_subs'; to run a subroutine at compile time.
use v5.26;
use feature 'lexical_subs';
die 7; # never called, runs in runtime use Voo do { my sub foo { die 42 }; \&foo; }; die 7; # never called, runs in runtime
We export nothing. The only UI is from the import routine which expect a lexical sub.
Evan Carroll, <me at evancarroll.com>
<me at evancarroll.com>
Please report any bugs or feature requests to bug-voo at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Voo. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-voo at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Voo
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Voo
CPAN Ratings
https://cpanratings.perl.org/d/Voo
Search CPAN
https://metacpan.org/release/Voo
This software is Copyright (c) 2022 by Evan Carroll.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Voo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Voo
CPAN shell
perl -MCPAN -e shell install Voo
For more information on module installation, please visit the detailed CPAN module installation guide.