]> git.vpit.fr Git - perl/modules/Sub-Nary.git/commitdiff
The right method to get the number of keys from a B::HV is ->KEYS
authorVincent Pit <vince@profvince.com>
Fri, 8 Aug 2008 19:47:52 +0000 (21:47 +0200)
committerVincent Pit <vince@profvince.com>
Fri, 8 Aug 2008 19:47:52 +0000 (21:47 +0200)
lib/Sub/Nary.pm

index b6ad798ebbe50604af0198ef7d183e8ebb90e5f2..8af7cd6671c8662ca7e09e3ea02fb6933ab9a814 100644 (file)
@@ -440,7 +440,7 @@ sub pp_const {
  if ($c eq 'AV') {
   $n = $sv->FILL + 1
  } elsif ($c eq 'HV') {
-  $n = 2 * $sv->FILL
+  $n = 2 * $sv->KEYS
  }
 
  return undef, $n