If you're really sure of what you're doing, you could locally disable the warnings (perllexwarn):
use warnings; use strict; foo($_) for 1 .. 5; sub foo { no warnings 'exiting'; my $z = shift; print "$z\n"; last if $z > 2; } __END__ 1 2 3
In reply to Re: next and last within subs
by toolic
in thread next and last within subs
by xorl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |