in reply to Re^6: Composing regex's dynamically
in thread Composing regex's dynamically

You can print out a regex:

my $re = qr/foo/; print "$re";

The stringified regex can be readily used as a regular expression again.

Replies are listed 'Best First'.
Re^8: Composing regex's dynamically
by John M. Dlugosz (Monsignor) on Apr 28, 2011 at 08:29 UTC
    That's what I'm seeing.