[Omaha.pm] Oops! next out of a sub

Jay Hannah jhannah at mutationgrid.com
Tue Dec 14 11:48:12 PST 2010


Ever accidentally put 'next if' in a subroutine to end further processing of that sub? 'return undef if' returns out of the sub as expected, but 'next' "magically" jumps out of the sub and iterates your loop miles away.   :)

D'oh!

Jay Hannah
Software Architect
jhannah at mutationgrid.com | http://mutationgrid.com | 1-402-598-7782







More information about the Omaha-pm mailing list