landonc has asked for the wisdom of the Perl Monks concerning the following question:
Please help. I have tried everything and it doesn't work.if($dtype=="SRADDL"){ $ora="SRC Addlf"; }elsif($dtype=="SRSUPP"){ $ora="SRC Supp"; }elsif($dtype=="GROUP"){ $ora="SRC Group"; }elsif($dtype=="SRFXDC"){ $ora="SRC Dep"; }elsif($dtype=="SRFLMD"){ $ora="SRC Med"; }elsif($dtype=="SRLIFE"){ $ora="SRC Life"; }else{ $ora=$dtype; } print $dtype." : ".$ora."\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: if/elsif statement troubles
by Zaxo (Archbishop) on May 09, 2003 at 21:31 UTC | |
by landonc (Novice) on May 09, 2003 at 21:42 UTC | |
|
Re: if/elsif statement troubles
by VSarkiss (Monsignor) on May 09, 2003 at 21:40 UTC | |
by Abigail-II (Bishop) on May 09, 2003 at 21:54 UTC | |
|
Re: if/elsif statement troubles
by cciulla (Friar) on May 09, 2003 at 21:54 UTC | |
|
Re: if/elsif statement troubles
by Limbic~Region (Chancellor) on May 09, 2003 at 21:40 UTC | |
by VSarkiss (Monsignor) on May 09, 2003 at 22:04 UTC | |
|
Re: if/elsif statement troubles
by vek (Prior) on May 10, 2003 at 03:16 UTC |