in reply to map function use
my @phrases = <foo bar>; print join "|", map { "\\s$_\\s" } map { quotemeta } @phrases;' __END__ \sfoo\s|\sbar\s
The regex looks fine to me - but without knowing what you match against it's impossible to tell if the regex is appropriate in your case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: map function use
by newbio (Beadle) on Aug 13, 2009 at 19:21 UTC | |
by ig (Vicar) on Aug 13, 2009 at 19:49 UTC | |
by ikegami (Patriarch) on Aug 13, 2009 at 22:29 UTC |