|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
is it possible to write case statements in Perl ??
if so do you know the syntax ? ie case (x) do y case (z) do A etc, similar to a switch statement in PHP thanks in advance Waseem |
|
#2
|
|||
|
|||
|
i don't think the switch conditional exists in perl, just have to use if/else
|
|
#3
|
||||
|
||||
|
yea ,you can't use case statements in perl.. you should use 'if ...elsif' for conditions.... ------------------ SR - webshiju.com "The fear of the LORD is the beginning of knowledge..." |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > case statements |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|