in reply to Regexp and object's methods.
If you need to have specific matches within the match (I mean $1, $2 or whatever), you'd have to construct the regex in the method.$_ =~ C->flag();
$1 and $2 would be available.sub flag { return '(.)foo(\\d+)bar' }
|
|---|