in reply to Re^2: fall through switch/case in perl
in thread fall through switch/case in perl

That's because it doesn't test and retest conditions like the cascades do, it just computes a goto target.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^4: fall through switch/case in perl
by BrowserUk (Patriarch) on Sep 07, 2004 at 03:25 UTC

    I know that! And that's why it's a better conversion of the c switch statement.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon