Re: Array iterator count

2013-08-10 Thread Michael Rasmussen
On Thu, Aug 08, 2013 at 12:30:10PM -0500, Andy Bach wrote: > On Thu, Aug 8, 2013 at 12:05 PM, Unknown User > wrote: > > > at any point is it possible to say which element i am handling without > > using a counter? > > > Er, well, if it were an array rather than a list > my @letters = (a .. z);

Re: Array iterator count

2013-08-10 Thread Michael Rasmussen
On Thu, Aug 08, 2013 at 11:30:29PM -0500, Andy Bach wrote: > > And buggy, consider: >my @timings = ( 11, 22, 3, 14, 18, 45, 18, ... 86 ); > > Yeah, it's a constraint without a cause. Do you want to treat every "18" in > the "if " or only the first? Why not use a counter? Is the data from a l