From: Vincent Pit Date: Wed, 20 Aug 2008 10:33:56 +0000 (+0200) Subject: add() always return a reference X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=b88f2c41d644a13f58e593d23bdf8525632a45f1;p=perl%2Fmodules%2FSub-Nary.git add() always return a reference --- diff --git a/lib/Sub/Nary.pm b/lib/Sub/Nary.pm index eaa378e..7fe0858 100644 --- a/lib/Sub/Nary.pm +++ b/lib/Sub/Nary.pm @@ -230,7 +230,6 @@ sub enter { my $r = add $self->inspect($op->first); shift @{$self->{cv}}; - $r = { $r => 1 } unless ref $r; $self->{cache}->{$tag} = { %$r }; return undef, $r; }