Guest User

Untitled

a guest
Jan 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. my %hash;
  2. my @items;
  3.  
  4. #... some code missing here, generally I'm just populating the @items list
  5. #with $currentitem items
  6.  
  7. while (<FILE>) { #read the file
  8.  
  9. ($a, $b) = split(/s+/,$_,-1);
  10. $hash{$currentitem} => {$a => $b};
  11. print $hash{$currentitem}{$a} . "n";#this is a test and it works
  12. }
  13.  
  14. @test = keys %hash{ $items[$num] };
  15.  
  16. while ( ($key, $value) = each( $hash{$items[$num]} ) ) {
  17.  
  18. print "$key, $valuen";
  19. }
  20.  
  21. $host{ "$currentcustomer" }{"$a"} => "$b";
  22.  
  23. $hash{$currentitem} => {$a => $b};
  24.  
  25. $hash{$currentitem}{$a} = $b;
  26.  
  27. keys %{ $hash{ $items[$num] } };
  28.  
  29. keys %{ $expr_producing_hash_ref };
  30.  
  31. keys %{ $hash{$items[$num]} };
Add Comment
Please, Sign In to add comment