in reply to Re: Scanning a list for indices
in thread Scanning a list for indices
Why use map without using it's return value? why not two for loops?
Well, I'm just now maturing enough with perl to begin to understand how to think about things with map (look ma, I'm using map!), so naturally I want to show off a bit. However, I also thought map might be more efficient here than 2 for loops (is that correct?).
I couldn't figure out how to use the return value from map to get done what I want. Any pointers here would be great!
Thanks!
-Craig Update: Oh, you just did... Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Scanning a list for indices
by jettero (Monsignor) on Feb 13, 2008 at 15:15 UTC | |
by Fletch (Bishop) on Feb 13, 2008 at 15:32 UTC | |
by jettero (Monsignor) on Feb 13, 2008 at 17:00 UTC |