Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
The stupid question is the question not asked
 
PerlMonks  

Re: converting from switch to given-when

by Athanasius (Prior)
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 chilling in the Monastery: (9)
As of 2014-04-19 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (481 votes), past polls