Re: map woes



seven.reeds wrote:

map {s/(\d+)\.news/$1/}
The result of the map is a
list of "1"s, prolly the count of successful s// matches.

Others have pointed out how to do it. I just want to point out the
comma operator, and how it could be used in this context.

map {s/(\d+)\.news/$1/, $_}

-Joe
.