Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Foreach on an array (of hashes)

by quidity (Pilgrim)
on Nov 21, 2000 at 08:10 UTC ( [id://42648]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach (@mass_info) {
       print $_->{PID}, "\n";
    }
    
  2. or download this
    foreach my $hash_ref (@mass_info) {
        foreach (keys %{$hash_ref}) {
           print "$_ => ${$hash_ref}{$_}\n";
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-16 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found