access values in array of hashrefs
- From: tech_list@xxxxxxxxxxxxxxxx (Ryan)
- Date: Fri, 30 May 2008 13:56:58 -0500
my $HHs=[
{Rx => 'test', key2 => '1st second key' },
{Rx => '2nd1', key2 => '2nd second key' },
{Rx => '3rd1', key2 => '3rd second key' }
];
say join(', ', @{$HHs->{Rx}}); # say all the values of the 'Rx' key in each element of @$HHs.
Is there an easy way to do what I want here?
- Follow-Ups:
- Re: access values in array of hashrefs
- From: Gunnar Hjalmarsson
- Re: access values in array of hashrefs
- From: Rob Dixon
- Re: access values in array of hashrefs
- Prev by Date: Re: how does file gets send to remote machine using perl
- Next by Date: Re: access values in array of hashrefs
- Previous by thread: About Win32::Job package
- Next by thread: Re: access values in array of hashrefs
- Index(es):