On Sep 16, Brent Clark said:

foreach my $fileName ( keys %$ref_allTariffData ){

        print keys $ref_allTariffData{$fileName};

}

The keys() function takes a hash. You used it properly the FIRST time, but not the second. And, $hash{$key} means that you have a hash called '%hash', whereas $hash->{$key} means that you have a hash reference stored in $hash. Your print() line, therefore, should be:

  print keys %{ $ref_allTariffData->{$filename} };

--
Jeff "japhy" Pinyan        %  How can we ever be the sold short or
RPI Acacia Brother #734    %  the cheated, we who for every service
http://www.perlmonks.org/  %  have long ago been overpaid?
http://princeton.pm.org/   %    -- Meister Eckhart

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to