Re: previous element in a list

2003-10-17 Thread Jeff 'japhy' Pinyan
On Oct 17, Nandita Mullapudi said: > I have a list of elements- and for every element in the >list, I want to carry out an operation with the previous >element or the next one, as the case might be, how do I tell >perl to look at the previous element? I'd just do something like: my $last = un

Re: previous element in a list

2003-10-17 Thread James Edward Gray II
On Friday, October 17, 2003, at 10:13 AM, Nandita Mullapudi wrote: I have a list of elements- and for every element in the list, I want to carry out an operation with the previous element or the next one, as the case might be, how do I tell perl to look at the previous element? I like: for (my

Re: previous element in a list

2003-10-17 Thread Rob Dixon
Nandita Mullapudi wrote: > > I have a list of elements- and for every element in the > list, I want to carry out an operation with the previous > element or the next one, as the case might be, how do I tell > perl to look at the previous element? Ni Nandita. This isn't straightforward in Perl.

previous element in a list

2003-10-17 Thread Nandita Mullapudi
I have a list of elements- and for every element in the list, I want to carry out an operation with the previous element or the next one, as the case might be, how do I tell perl to look at the previous element? t.i.a -Nandita -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands