in reply to Printing regular expression variable

This "wrapper" has a meaning. Moreover, the "wrapper" may be different in a different version of Perl. Try wrapping regular expressions with flags:
my $regex = qr/^.*$/m; print "$regex\n"; # (?^um:^.*$) in 5.16.0

See perlre - Perl regular expressions for details.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Printing regular expression variable
by MattLG (Beadle) on May 27, 2013 at 23:04 UTC

    I've not been able to find any details about the regexp output format in those perl docs. Is this documented anywhere.

    And is there an alternative method to get the original regexp out of a variable?

    MattLG

      See Extended Patterns in the linked document.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ