Re: if else elsif

2011-03-18 Thread Katie T
It would help if you could clarify what you expect the following chunk of code to achieve: my @data = ( split /;/ )[31,32,38,39,261]; if (@data[39] =~ /15/) { 2 } else { 1 }

RE: if else elsif

2011-03-17 Thread Wagner, David --- Senior Programmer Analyst --- CFS
>-Original Message- >From: Chris Stinemetz [mailto:cstinem...@cricketcommunications.com] >Sent: Thursday, March 17, 2011 14:16 >To: beginners >Subject: if else elsif > >I am trying to return new values based on if else. I understand the idea of >using if else, but I am not sure I have place

Re: if else elsif

2011-03-17 Thread Rob Dixon
On 17/03/2011 20:16, Chris Stinemetz wrote: I am trying to return new values based on if else. I understand the idea of using if else, but I am not sure I have placed in the right place. I was assuming I would want to insert it before the array is sorted. Thank you in advance. This mailing list

Re: if else elsif

2011-03-17 Thread Uri Guttman
> "CS" == Chris Stinemetz writes: CS> I am trying to return new values based on if else. I understand CS> the idea of using if else, but I am not sure I have placed in the CS> right place. I was assuming I would want to insert it before the CS> array is sorted. Thank you in advance.