in reply to regex needed with match operator
Here's a simpler solution which grabs what is matched (as opposed to modifying the contents @FILES as your code does)if(m[/\w+/foo]) { s[.* /(\w+) /foo \z]($1)x; ... }
See. perlre for more info on the regex used.print m{ /(\w+) /foo\z }x, "\n" for @FILES;
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex needed with match operator (push for == map)
by Aristotle (Chancellor) on Apr 28, 2003 at 13:56 UTC | |
|
Re: Re: regex needed with match operator
by Anonymous Monk on Apr 28, 2003 at 13:43 UTC | |
by broquaint (Abbot) on Apr 28, 2003 at 13:47 UTC | |
by Anonymous Monk on Apr 28, 2003 at 14:04 UTC |