http://qs1969.pair.com?node_id=671937


in reply to Exiting subroutine via next (that old chestnut)

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

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}