Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Referencing a HoH

by P0w3rK!d (Pilgrim)
on May 07, 2003 at 18:11 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://256335]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-18 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found