Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: fall through switch/case in perl

by Aristotle (Chancellor)
on Sep 07, 2004 at 03:21 UTC ( [id://388917]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://388917]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-25 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found