Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Referencing a HoH

by P0w3rK!d (Pilgrim)
on May 07, 2003 at 17:34 UTC ( [id://256316]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # build hash
    while() {
    ...
    # key1 is a number
    # key2 is a sequential number
    }
    
  2. or download this
        foreach $key (keys %hshFoo) {
            print "  $key => $hshFoo{$key}\n";
        }
    
  3. or download this
        foreach $key2 (keys $hshFoo{$key}) {
            ...
    ...
    Type of arg 1 to keys must be hash (not hash element) at foo.pl line
     341, near "}) "
    BEGIN not safe after errors--compilation aborted at foo.pl line 431.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://256316]
Approved by Paladin
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-03-28 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found