http://qs321.pair.com?node_id=11146512


in reply to Re: Limit loop
in thread Limit loop

            foreach ( @favs[ 0 .. 24 ] ) {

Since the original post said only "a few of these favorite fields have more than 25", then most of the time, that will end up with one or more undef iterations on the loop, so then undef would have to be handled specially. Maybe via next unless defined; or similar logic.