Re: keys of hash of hashes



maybe u want this:

foreach my $fileName ( keys %$ref_allTariffData ){

foreach my $name ( keys %{$ref_allTariffData->{$fileName}} ){

print $name,";";

}
}





On Fri, 16 Sep 2005 10:33:58 +0200, "Brent Clark"
<bclark@xxxxxxxxxxxxxxxxxxxx> said:
> Hi list
>
> I have a hash that im trying to get the keys.
>
>
>
> foreach my $fileName ( keys %$ref_allTariffData ){
>
> print keys $ref_allTariffData{$fileName};
>
> }
>
>
> My Data Dumper:
>
> $VAR1 = {
> 'sham02' => {
> 'Luxury' => 'LuxRm'
> },
> 'kwam01' => {
> 'Thatched Chalet' => 'Chalet',
> 'Luxury Safari Tent' => 'LuxTnt'
> },
>
> I basically want just:
>
> Luxury, Thatched Chalet', Luxury Safari Tent etc.
>
> If anyone would could assist me, I would be most grateful.
>
> Kind Regards
> Brent Clark
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
> For additional commands, e-mail: beginners-help@xxxxxxxx
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
--
Jeff Pan
jeffpan@xxxxxxxxxxx

--
http://www.fastmail.fm - Same, same, but different?
.



Relevant Pages