Perl help dereferencing a reference to an array of hash references, containing record set data

Posted by user1724150 on Stack Overflow See other posts from Stack Overflow or by user1724150
Published on 2012-10-05T21:27:54Z Indexed on 2012/10/05 21:37 UTC
Read the original article Hit count: 155

Filed under:
|

I'm using the a Amazon Perl module that returns a reference to an array of hash references as $record_sets, containing record set data and I'm having a hard time dereferencing it. I can print the data using data dumper but I need to be able to manipulate the data. Below is the documentation provided for the module

Thanks In Advance:

#list_resource_record_sets
#Lists resource record sets for a hosted zone.
#Called in scalar context:

$record_sets = $r53->list_resource_record_sets(zone_id => '123ZONEID');

#Returns: A reference to an array of hash references, containing record set data. Example:

$record_sets = [
{
name => 'example.com.',
type => 'MX'
ttl => 86400,
records => [
'10 mail.example.com'
]
},
{
name => 'example.com.',
type => 'NS',
ttl => 172800,
records => [
'ns-001.awsdns-01.net.',
'ns-002.awsdns-02.net.',
'ns-003.awsdns-03.net.',
'ns-004.awsdns-04.net.'
]

© Stack Overflow or respective owner

Related posts about perl

Related posts about amazon-route53