in reply to Re: Referencing a HoH
in thread Referencing a HoH

Thank you. I have not written any Perl with hashes for about 6 months. I simply forgot the %. Shame on me :{

Replies are listed 'Best First'.
Re: Re: Re: Referencing a HoH
by Zed_Lopez (Chaplain) on May 07, 2003 at 18:21 UTC
    You could also consider the now mostly disused pseudo-multi-dimensional array syntax:
    $h{$key1,$key2} = $val; while (my ($key, $val) = each %h) { my ($key1, $key2) = split /$;/, $key; print "$key1;$key2 -> $val\n"; }