RE: select case or switch statement

2005-06-12 Thread Charles K. Clarkson
Omega -1911 wrote: : I am still trying to grasp using case statements... Since I am : new to this, I had a question as to the speed of using CASE. I : currently have a script that has 91 if/elsif/else statements in : total. Will switching to using CASE improve the execut

Re: select case or switch statement

2005-06-12 Thread Omega -1911
I am still trying to grasp using case statements...Since I am new to this, I had a question as to the speed of using CASE. I currently have a script that has 91 if/elsif/else statements in total. Will switching to using CASE improve the execution of the script? On 6/11/05, Chris Devers <[EMAIL PRO

Re: select case or switch statement

2005-06-11 Thread Chris Devers
On Sat, 11 Jun 2005, Jeff 'japhy' Pinyan wrote: > On Jun 11, Ron Smith said: > > > Does Perl have the equivalent of a case statement or a switch > > statement. I'm trying to avoid a bunch of "if-then" statements. > > I'm seeing posts regarding "use switch", but I want to make sure > > it's not a

Re: select case or switch statement

2005-06-11 Thread Jeff 'japhy' Pinyan
On Jun 11, Ron Smith said: Does Perl have the equivalent of a case statement or a switch statement. I'm trying to avoid a bunch of "if-then" statements. I'm seeing posts regarding "use switch", but I want to make sure it's not a deprecated practice. I'm using Perl -v 5.8.0. The Switch.pm mod

Re: select case or switch statement

2005-06-11 Thread Ron Smith
I used 'perldoc -f switch' and nothing came up. I've done what you suggested and I'm on my way. Thank you very much. R "Ing. Branislav Gerzo" <[EMAIL PROTECTED]> wrote: Ron Smith [RS], on Saturday, June 11, 2005 at 14:11 (-0700 (PDT)) has on mind: RS> Does Perl have the equivalent of a case st

Re: select case or switch statement

2005-06-11 Thread Ing. Branislav Gerzo
Ron Smith [RS], on Saturday, June 11, 2005 at 14:11 (-0700 (PDT)) has on mind: RS> Does Perl have the equivalent of a case statement or a switch RS> statement. I'm trying to avoid a bunch of "if-then" statements. RS> I'm seeing posts regarding "use switch", but I want to make sure RS> it's not a d

select case or switch statement

2005-06-11 Thread Ron Smith
Does Perl have the equivalent of a case statement or a switch statement. I'm trying to avoid a bunch of "if-then" statements. I'm seeing posts regarding "use switch", but I want to make sure it's not a deprecated practice. I'm using Perl -v 5.8.0. my $day; if ($day = "mon") { $num = 0; }