From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Voo - Run functions at compile time, not runtime!

SYNOPSIS

This module uses lexical subs (enabled with use v5.26; or use feature 'lexical_subs'; to run a subroutine at compile time.

die 7; # never called, runs in runtime
use Voo do {
my sub foo { die 42 };
\&foo;
};
die 7; # never called, runs in runtime

EXPORT

We export nothing. The only UI is from the import routine which expect a lexical sub.

AUTHOR

Evan Carroll, <me at evancarroll.com>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Voo

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2022 by Evan Carroll.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)