Edward Peschko wrote: > my $_parens = \&_parens; > > if ($string =~ m"($_parens)stuff") > { > } > > and have the regular expression engine: > > a) recognize that $_parens is a code reference The problem is that the regexp engine won't see the $_parens variable, but something like "(CODE(0xdeadbeef))stuff".Thread Previous | Thread Next