optimize - Pragma for hinting optimizations on variables
use optimize; my $int : optimize(int); $int = 1.5; $int += 1; if ($int == 2) { print "$int is integerized" } # Following will call this callback with the op # as the argument if you are in the specified package. # See L<types> how it is used from import and unimport. optimize->register(\&callback, $package); # and reverse it optimize->unregister($package);
optimize allows you to use attributes to turn on optimizations. It works as a framework for different optimizations.
optimize usually rewrites the optree, weird and funky things can happen, different optimizations will be in a different state of readyness
Artur Bergman <abergman at cpan.org>
optimize::int B::Generate
To install optimize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm optimize
CPAN shell
perl -MCPAN -e shell install optimize
For more information on module installation, please visit the detailed CPAN module installation guide.