in reply to Re: Eek! goto?
in thread (duplicate) Eek! goto?

That doesn't quite work. There are no breasks in the original, it falls through all cases below the starting point. Other than decrementing $num and getting into a !$num tests loops, I can't see how to convert that?


Examine what is said, not who speaks.

The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.

Replies are listed 'Best First'.
Re: Re: Re: Eek! goto?
by djantzen (Priest) on Feb 12, 2003 at 00:22 UTC
    Oh, okay. Replace last SWITCH with $num-- and goto SWITCH or merely $num-- and you'll fall through.
    "The dead do not recognize context" -- Kai, Lexx