You want to loop through the array, printing each item. Since the array is already sorted into groups, you just print a new group header when the value changes:
use feature 'say'; my $type; for my $entry (@$VAR1) { if ( $entry->{type} ne $type ) { $type = $entry->{type}; say $type; } say "\t$entry->{name} - $entry->{reference}"; }
In reply to Re: Accessing this array ref.
by Loops
in thread Accessing this array ref.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |