Re: map woes
- From: Joe Smith <joe@xxxxxxxxx>
- Date: Thu, 28 Jun 2007 11:45:00 -0700
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
.
- References:
- map woes
- From: seven.reeds
- map woes
- Prev by Date: Re: new in CGI::Session::Driver::postgredsql nonexisting
- Next by Date: Re: using wildcards with -e
- Previous by thread: Re: map woes
- Next by thread: Re: map woes
- Index(es):