in reply to Re^3: How to read Array
in thread How to read Array
Thanks, Yes I want all dns_record entries. In above example I need read all records for "A,NS,CNAME" records type "$json->{dns_zone}->{records}->{A}" I am trying use below script
$data = Cpanel::JSON::Load($json); my @dns_records; @dns_records = { map { $_->{dns_zone}->{records}->{A}->{dns_record}-> +{name} => $_->{dns_zone}->{records}->{A}->{dns_record}->{name} } @{$d +ata} };
Please guide what's wrong in my script
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to read Array
by hdb (Monsignor) on Jul 09, 2013 at 13:57 UTC | |
by sunilgame (Initiate) on Jul 15, 2013 at 07:41 UTC | |
by hdb (Monsignor) on Jul 15, 2013 at 07:55 UTC | |
by sunilgame (Initiate) on Jul 15, 2013 at 08:33 UTC | |
by hdb (Monsignor) on Jul 15, 2013 at 08:47 UTC | |
|
Re^5: How to read Array (autoguidance)
by Anonymous Monk on Jul 09, 2013 at 10:52 UTC |