in reply to Turning foreach into map?
Watch out if your expression is surrounded by parentheses, though, because map will think they enclose all of its arguments. You either need two sets of parens (one around your expression, and one around all of map's args), or you don't need any. In your case, you don't need any.
return map "$url/$_\n", @list;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Turning foreach into map?
by tlm (Prior) on Apr 04, 2005 at 21:18 UTC |