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

Re: Slice of an array of hashes

by murugu (Curate)
on Oct 25, 2005 at 08:48 UTC ( [id://502647]=note: print w/replies, xml ) Need Help??


in reply to Slice of an array of hashes

Here is my try,

my $aref = [{DB => 'Alpha', SOURCE => 'here'}, {DB => 'Beta', SOURCE => 'there'}, {DB => 'Gamma', SOURCE => 'someplace'}]; foreach $arr (@$aref) { push @list,$arr->{DB}; } print $_."\n" for @list;

Regards,
Murugesan Kandasamy
use perl (;;);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-20 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found