go ahead... be a heretic | |
PerlMonks |
Re^3: Capturing regex from mapby Laurent_R (Canon) |
on Sep 13, 2013 at 18:09 UTC ( [id://1053985]=note: print w/replies, xml ) | Need Help?? |
You are right, grep will not do captures in such a situation. I might not have been clear, but I only mentionned is as an additional useful tool in similar synctactic context, for filtering purpose. Having said that you can do something akin to captures in a grep, although it is not very clean. Consider this:
Not clean, I would not really recommend it, but not impossible.
In Section
Seekers of Perl Wisdom
|
|