Xavier Noria [XN], on Tuesday, May 24, 2005 at 22:12 (+0200) typed the following:
XN> my $i = 0; XN> my @bar = map $_->[1], # take second component XN> grep $_->[0] eq 'e', # let 'e's pass XN> map [$_, ++$i], # arrayref [char, index of char] XN> split //, $foo; # split $foo in chars XN> The while is better IMO. while is more readable in this example, if I'll have this piece of code in my script I spend 5 minutes to see what it is doing, and other could spend the whole life ! :) I think we should code more readable script(s), let Perl isn't ROL. -- How do you protect mail on web? I use http://www.2pu.net ["What's the speed limit on Highway 69?" "Lickety-split."] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>