next (perldoc -f next) is for skipping over a loop iteration. Since your subroutine does not appear to be a loop, you should probably use something like return (perldoc -f return) to exit the subroutine. Read the caveats in the documentation, though. ;)
--
Damon Allen Davison
http://www.allolex.net
In reply to Re: exiting via next: Extra careful or just bitchy?
by allolex
in thread exiting via next: Extra careful or just bitchy?
by vacant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |