in reply to Accessing this array ref.
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}"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Accessing this array ref.
by Anonymous Monk on Apr 03, 2013 at 19:23 UTC | |
by Cristoforo (Curate) on Apr 03, 2013 at 19:52 UTC | |
by Anonymous Monk on Apr 03, 2013 at 20:05 UTC | |
by Anonymous Monk on Apr 03, 2013 at 20:37 UTC | |
by Cristoforo (Curate) on Apr 03, 2013 at 22:45 UTC |