Re: reverse range (10..1)

2003-09-04 Thread R. Joseph Newton
Paul Archer wrote: > 4:09pm, Ramprasad A Padmanabhan wrote: > > And the problem is not simply a puzzle, nor is it homework. If you had read > my post more carefully, you would see that I am 1) *teaching* the class, and > 2) want to be able to show off one concept (the range operator) before we > h

Re: reverse range (10..1)

2003-08-31 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Paul Archer wrote: [top post moved into its chronological place] > 7:26am, Todd W. wrote: > >> >> "Paul Archer" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > Is there any (quick and easy) way to get a reverse range, like (10..1), >> > rather t

Re: reverse range (10..1)

2003-08-27 Thread Jenda Krynicky
From: "Jenda Krynicky" <[EMAIL PROTECTED]> > From: Paul Archer <[EMAIL PROTECTED]> > > Is there any (quick and easy) way to get a reverse range, like > > (10..1), rather than a standard (1..10)? The catch is to *not* use > > 'reverse'. I'm teaching Sun's perl course this week (DTP-250), and > > we

Re: reverse range (10..1)

2003-08-27 Thread Jenda Krynicky
From: Paul Archer <[EMAIL PROTECTED]> > Is there any (quick and easy) way to get a reverse range, like > (10..1), rather than a standard (1..10)? The catch is to *not* use > 'reverse'. I'm teaching Sun's perl course this week (DTP-250), and we > were talking about working on arrays. The book had an

Re: reverse range (10..1)

2003-08-27 Thread Paul Archer
*Vey* cool examples--especially the 'map' in the first one. Thanks! Paul 7:26am, Todd W. wrote: > > "Paul Archer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Is there any (quick and easy) way to get a reverse range, like (10..1), > > rather than a standard (1..10)? Th

RE: reverse range (10..1)

2003-08-27 Thread Perry, Alan
On Wednesday, August 27, 2003 08:30, James Edward Gray II wrote: > >On Wednesday, August 27, 2003, at 05:39 AM, Ramprasad A Padmanabhan >wrote: > >> IMHO this list is not for solving puzzles or doing school homework , >> It is for people learning perl who are getting stuck due to pure perl >> p

Re: reverse range (10..1)

2003-08-27 Thread James Edward Gray II
On Wednesday, August 27, 2003, at 05:39 AM, Ramprasad A Padmanabhan wrote: IMHO this list is not for solving puzzles or doing school homework , It is for people learning perl who are getting stuck due to pure perl problems My, seldom humble, opinion does not agree with yours. My feeling is t

RE: reverse range (10..1)

2003-08-27 Thread Bob Showalter
Paul Archer wrote: > Is there any (quick and easy) way to get a reverse range, > like (10..1), > rather than a standard (1..10)? The catch is to *not* use 'reverse'. > I'm teaching Sun's perl course this week (DTP-250), and we > were talking > about working on arrays. The book had an exercise that

Re: reverse range (10..1)

2003-08-27 Thread Paul Archer
4:09pm, Ramprasad A Padmanabhan wrote: > Paul Archer wrote: > > Is there any (quick and easy) way to get a reverse range, like (10..1), > > rather than a standard (1..10)? The catch is to *not* use 'reverse'. > > I'm teaching Sun's perl course this week (DTP-250), and we were talking > > about wor

RE: reverse range (10..1)

2003-08-27 Thread EUROSPACE SZARINDAR
Hi, @normal = (0,1,2,3,4,5,6,7,8,9); foreach (0..$#normal) { unshift @reverse, (shift @normal) }; this also works fine. Michel -Message d'origine- De: Paul Archer [mailto:[EMAIL PROTECTED] Date: mardi 26 août 2003 21:45 À: [EMAIL PROTECTED] Objet: reverse range (10..1) Is ther

Re: reverse range (10..1)

2003-08-27 Thread Todd W.
"Paul Archer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there any (quick and easy) way to get a reverse range, like (10..1), > rather than a standard (1..10)? The catch is to *not* use 'reverse'. > I'm teaching Sun's perl course this week (DTP-250), and we were talking > abo

Re: reverse range (10..1)

2003-08-27 Thread Ramprasad A Padmanabhan
Paul Archer wrote: Is there any (quick and easy) way to get a reverse range, like (10..1), rather than a standard (1..10)? The catch is to *not* use 'reverse'. I'm teaching Sun's perl course this week (DTP-250), and we were talking about working on arrays. The book had an exercise that had the stud

reverse range (10..1)

2003-08-27 Thread Paul Archer
Is there any (quick and easy) way to get a reverse range, like (10..1), rather than a standard (1..10)? The catch is to *not* use 'reverse'. I'm teaching Sun's perl course this week (DTP-250), and we were talking about working on arrays. The book had an exercise that had the student reverse an arra