summaryrefslogtreecommitdiff
path: root/lib/dumpvar.pl
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-07 10:33:38 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-07 10:33:38 +0000
commit66e4e5d58b6f1a43b01a82c3d198f3a5add40b57 (patch)
tree5dd1c73d5f2a90419ada9a5416d04443f259011b /lib/dumpvar.pl
parent82d8f8347aac1265a123c7171e3613e510568391 (diff)
downloadperl-66e4e5d58b6f1a43b01a82c3d198f3a5add40b57.tar.gz
Avoid to load the *+ and *- globs too early.
To silence spurious interpolation warnings, merely create the stash entry for them. Ensure that the re::Tie::Hash::NamedCapture module is always loaded when we have created the tied hashes %+ and %-. Revert change #30483, which is now unnecessary. p4raw-link: @30483 on //depot/perl: 73f68b39467596f862aade4f4b46d6061aa98bd3 p4raw-id: //depot/perl@30490
Diffstat (limited to 'lib/dumpvar.pl')
-rw-r--r--lib/dumpvar.pl1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/dumpvar.pl b/lib/dumpvar.pl
index d02ebb9cce..0268cea8bc 100644
--- a/lib/dumpvar.pl
+++ b/lib/dumpvar.pl
@@ -377,7 +377,6 @@ sub dumpglob {
unwrap(\@entry,3+$off,$m) ;
print( (' ' x $off) . ")\n" );
}
- if ($key eq '-') { eval { require re::Tie::Hash::NamedCapture } }
if ($key ne "main::" && $key ne "DB::" && %entry
&& ($dumpPackages or $key !~ /::$/)
&& ($key !~ /^_</ or $dumpDBFiles)