in reply to Re: Converting a stringified regexp back into a regexp
in thread Converting a stringified regexp back into a regexp
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
|
|---|