develooper Front page | perl.beginners | Postings from February 2002

Re: Does Perl have "Case" Statements?

Thread Previous | Thread Next
From:
Chris
Date:
February 28, 2002 14:06
Subject:
Re: Does Perl have "Case" Statements?
Message ID:
3C7EA90F.2000701@candp-ent.com
Jenda Krynicky wrote:
> From: Chris <chris@candp-ent.com>
> 
>>I have been looking in the Learning Perl book, and cannot find it.
>>
>>I am sure that it is just a terminology thing.
>>
>>In VB {Yeah the old VB again :P) I could do:
>>
>>Select Case $Junk
>>     Case 1
>>        Do Something
>>     Case 2
>>        Do Something
>>     Case 3
>>        Do Something
>>     Case 4
>>        Do Something
>>End Select
>>
>>Does Perl have something similar to where I do not have to have one
>>humongous IF statement?
>>
> 
> As always TIMTOWDI :
> 
> perldoc Switch
> 
> perldoc -q "How do I create a switch or case statement?"
> 
> perldoc perlsyn
> 
> HTH, Jenda
> 
> =========== Jenda@Krynicky.cz == http://Jenda.Krynicky.cz ==========
> There is a reason for living. There must be. I've seen it somewhere.
> It's just that in the mess on my table ... and in my brain.
> I can't find it.
> 					--- me
> 

DANG!

You guys are Da Bomb!

:)

Thanks!



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About