in reply to next and last within subs
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: next and last within subs
by xorl (Deacon) on Jul 11, 2014 at 19:58 UTC | |
by oakb (Scribe) on Jul 11, 2014 at 21:36 UTC | |
by Anonymous Monk on Jul 11, 2014 at 20:25 UTC |