projects
/
p5sagit/Devel-Declare.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Don't mix declarations and code when declaring the stack pointer.
[p5sagit/Devel-Declare.git]
/
lib
/
Devel
/
Declare.pm
diff --git
a/lib/Devel/Declare.pm
b/lib/Devel/Declare.pm
index
227b3ba
..
a3e76bf
100644
(file)
--- a/
lib/Devel/Declare.pm
+++ b/
lib/Devel/Declare.pm
@@
-97,7
+97,6
@@
sub shadow_sub {
no strict 'refs';
my ($pack, $pname) = ($name =~ m/(.+)::([^:]+)/);
push(@$temp_save, $pack->can($pname));
- delete ${"${pack}::"}{$pname};
no warnings 'redefine';
no warnings 'prototype';
*{$name} = $cr;