Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: converting from switch to given-when

by Athanasius (Monsignor)
on Sep 25, 2012 at 03:03 UTC ( #995481=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    given ($selection) {
        when (wxID_YES()) {
    ...
            print qq[You pressed: "Cancel"\n];
        }
    }
    
  2. or download this
    #! perl
    use v5.14.1;
    ...
            default            { print qq[Invalid selection\n]     }
        }
    }
    
  3. or download this
    12:50 >perl 300_SoPW.pl
    selection is 5104
    wxID_YES is 5103
    One
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2014-08-28 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (257 votes), past polls