Hi---

  Newer versions of perl have given and when.  But that's if you're using a 
version of perl that's newer than 5.10.1 or newer.

Take Care---
Jerry

On Dec 26, 2013, at 9:20 AM, Paul Graydon <p...@paulgraydon.co.uk> wrote:

> On Fri, Dec 20, 2013 at 10:45:05AM -0500, Brandon Allbery wrote:
>>   On Fri, Dec 20, 2013 at 10:39 AM, john boris <jbori...@gmail.com> wrote:
>> 
>>     I have this perl script that I have a long if/elsif portion. I am
>>     porting a shell script to perl so I am trying to mimic a case statement
>>     from a shell script. I know I should use Switch but the version
>> 
>>   Actually Switch is considered rather bad.
> 
> I don't think I've heard that before.. why is switch considered bad?  In most 
> languages it is supposed to be far more efficient than a nested if statement.
> 
> Paul
> _______________________________________________
> Tech mailing list
> Tech@lists.lopsa.org
> https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
> This list provided by the League of Professional System Administrators
> http://lopsa.org/

_______________________________________________
Tech mailing list
Tech@lists.lopsa.org
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to