NAME
Goto::Cached - an amortized O(1) drop-in replacement for Perl's O(n) goto
SYNOPSIS
use Goto::Cached;
my $label = 'LABEL3';
goto LABEL1;
LABEL1: goto $label;
LABEL2: print "Not reached!", $/;
LABEL3: print "label3!", $/;
DESCRIPTION
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
and jumps out of the current scope are not cached.
VERSION
0.05
SEE ALSO
AUTHOR
chocolateboy: <chocolate.boy@email.com>
COPYRIGHT
Copyright (c) 2005, chocolateboy.
This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.