Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Array of Hashes

by 1nickt (Abbot)
on Feb 07, 2019 at 15:02 UTC ( #1229554=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $field1 = $row->{field1}; $field2 = $row->{field2}; $field3 = $row->{f
    +ield3};
    print "Row id is $field1, field 2 is $field2, field 3 is $field3\n";
    
  2. or download this
    print sprintf "Row id is %s, field 2 is %s, field 3 is %s\n", @{$row}{
    +qw/field1 field2 field3/};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2019-10-17 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?