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:

{ my %cache; sub my_qr { $cache{ $_[0] } ||= qr/$_[0]/ } }
though one loses some of the modifier syntax.

the lowliest monk