On Thu, Aug 08, 2013 at 12:30:10PM -0500, Andy Bach wrote: > On Thu, Aug 8, 2013 at 12:05 PM, Unknown User > <knowsuperunkn...@gmail.com>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); > foreach my $letter ( a .. z ) { > if ( $letter eq $letters[4] ) { > > but that's sort of silly.
And buggy, consider: my @timings ( 11, 22, 3, 14, 18, 45, 18, ... 86 ); -- Michael Rasmussen, Portland Oregon Be Appropriate && Follow Your Curiosity Other Adventures: http://www.jamhome.us/ or http://gplus.to/MichaelRpdx A special random fortune cookie fortune: Great minds discuss ideas, average minds discuss events, small minds discuss people. ~ Eleanor Roosevelt -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/