Re: case and functions

2004-01-07 Thread William.Ampeh
You can do something like this: my $flip = something; SWITCH: { ( $flip =~ /^0$/ || $flip =~ /^1$/ || $flip =~ /^2$/ ) do { $local_pref = FL; last SWITCH; }; ( $flip =~ /^3$/ || $flip =~ /^4$/ || $flip =~ /^5$/ ) do { $local_pref = FU; last SWITCH;

Re: case and functions

2004-01-07 Thread drieux
On Jan 6, 2004, at 2:08 PM, [EMAIL PROTECTED] wrote: Yo. what Up. I read in Learning Perl that there are no such constructs like a case statement. Is there something similar or did I misread this? As folks have already pointed to both the classic perlfaq, and implied that one should

case and functions

2004-01-06 Thread DBSMITH
Yo. I read in Learning Perl that there are no such constructs like a case statement. Is there something similar or did I misread this? Also what about functions and function calls, do these exits or does the subroutines replace these? thanks Derek B. Smith OhioHealth IT UNIX / TSM /

RE: case and functions

2004-01-06 Thread Esposito, Anthony
PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 4:08 PM To: [EMAIL PROTECTED] Subject: case and functions Yo. I read in Learning Perl that there are no such constructs like a case statement. Is there something similar or did I misread this? Also what about functions

RE: case and functions

2004-01-06 Thread Dan Muey
Yo. What's up dog? :) I read in Learning Perl that there are no such constructs like a case statement. Is there Yes, there is. Do you mean: if(this) { do this } elsif(that) { do that } else { do the other } something similar or did I misread this? Also

Re: case and functions

2004-01-06 Thread Jenda Krynicky
From: [EMAIL PROTECTED] I read in Learning Perl that there are no such constructs like a case statement. Is there something similar or did I misread this? Ask the FAQ, run perldoc -q case statement Also what about functions and function calls, do these exits or does the

Re: case and functions

2004-01-06 Thread Chuck Fox
[EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] I read in Learning Perl that there are no such constructs like a case statement. Is there something similar or did I misread this? Ask the FAQ, run perldoc -q case statement Also what about functions and function calls, do

Re: case and functions

2004-01-06 Thread DBSMITH
will read the perldoc. thanks Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams 614-566-4145 Jenda Krynicky [EMAIL PROTECTED] 01/06/2004 05:18 PM To: [EMAIL PROTECTED] cc: Subject:Re: case and functions From: [EMAIL PROTECTED] I read in Learning Perl

Re: case and functions

2004-01-06 Thread Randal L. Schwartz
DBSMITH == DBSMITH [EMAIL PROTECTED] writes: DBSMITH Also, my intention was to avoid the if , then ,elif, then DBSMITH constructs, mentioned by Dan, for certain situations What is the source of your fear? Sounds like a phobia to me. -- Randal L. Schwartz - Stonehenge Consulting Services,

Re: case and functions

2004-01-06 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: People of the Perl, thanks for the infoI am familiar with perls subroutines so I will use these and this name instead of functions. Also, my intention was to avoid the if , then ,elif, then constructs, mentioned by Dan, for certain situations which is why I