Goto::Cached - an amortized O(1) drop-in replacement for Perl's O(n) goto
use Goto::Cached; my $label = 'LABEL3'; goto LABEL1; LABEL1: goto $label; LABEL2: print "Not reached!", $/; LABEL3: print "label3!", $/;
Goto::Cached provides a fast, lexically-scoped drop-in replacement for perl's builtin goto. Its use is the same as the builtin. goto &sub is not cached.
goto
goto &sub
0.02
Acme::Goto::Line
chocolateboy: <chocolate.boy@email.com>
Copyright (c) 2005, chocolateboy.
This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.
To install Goto::Cached, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Goto::Cached
CPAN shell
perl -MCPAN -e shell install Goto::Cached
For more information on module installation, please visit the detailed CPAN module installation guide.