Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Referencing a HoH

by P0w3rK!d (Pilgrim)
on May 07, 2003 at 18:11 UTC ( #256335=note: print w/replies, xml ) Need Help??


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"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://256335]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2019-12-06 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (154 votes). Check out past polls.

    Notices?