diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-11-29 18:08:15 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-11-29 18:08:15 -0600 |
commit | f253ff9ea6aad9021b3a0d15449e8097d348402a (patch) | |
tree | 57945d958640771d6260c6deaf68c7d74db3257c /lib | |
parent | acbc69c4f1ade78eb1d6f951cb6336af4297d996 (diff) | |
download | package-stash-f253ff9ea6aad9021b3a0d15449e8097d348402a.tar.gz package-stash-f253ff9ea6aad9021b3a0d15449e8097d348402a.zip |
make sure we don't get warnings about redefining symbols
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Package/Stash/PP.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Package/Stash/PP.pm b/lib/Package/Stash/PP.pm index 8d95840..a831564 100644 --- a/lib/Package/Stash/PP.pm +++ b/lib/Package/Stash/PP.pm @@ -185,6 +185,7 @@ sub add_symbol { $namespace->{$name} ||= *{ Symbol::gensym() }; if (@_ > 2) { + no warnings 'redefine'; *{ $namespace->{$name} } = ref $initial_value ? $initial_value : \$initial_value; } |