A variant of this idea would be to memoize qr:
though one loses some of the modifier syntax.{ my %cache; sub my_qr { $cache{ $_[0] } ||= qr/$_[0]/ } }
the lowliest monk
In reply to Re^2: Converting a stringified regexp back into a regexp
by tlm
in thread Converting a stringified regexp back into a regexp
by mirod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |