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.
Copyright (c) 2005, chocolateboy.
This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.