![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Exiting subroutine via next (that old chestnut)by shmem (Chancellor) |
on Mar 04, 2008 at 17:07 UTC ( #671937=note: print w/replies, xml ) | Need Help?? |
It is not an error, but a warning, and rightly so.
If you ever call that sub only from within a loop, all is fine. But if you call it with no loop around, perl dies because next has no target. --shmem
In Section
Seekers of Perl Wisdom
|
|