diff options
Diffstat (limited to 'lib/dumpvar.pl')
-rw-r--r-- | lib/dumpvar.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/dumpvar.pl b/lib/dumpvar.pl index 32d4692d13..fb0bb2396f 100644 --- a/lib/dumpvar.pl +++ b/lib/dumpvar.pl @@ -143,6 +143,13 @@ sub unwrap { } } + if (ref $v eq 'Regexp') { + my $re = "$v"; + $re =~ s,/,\\/,g; + print "$sp-> qr/$re/\n"; + return; + } + if ( UNIVERSAL::isa($v, 'HASH') ) { @sortKeys = sort keys(%$v) ; undef $more ; |