]> git.vpit.fr Git - perl/modules/Sub-Nary.git/commitdiff
add() always return a reference
authorVincent Pit <vince@profvince.com>
Wed, 20 Aug 2008 10:33:56 +0000 (12:33 +0200)
committerVincent Pit <vince@profvince.com>
Wed, 20 Aug 2008 10:33:56 +0000 (12:33 +0200)
lib/Sub/Nary.pm

index eaa378e1aead72279fdf2231aff9c5584a2e18e1..7fe085855580aa53a478126802822797cf65a063 100644 (file)
@@ -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;
 }