Then this should do it.my $results; my $type; for my $entry (@$VAR1) { if ( $entry->{type} ne $type ) { $type = $entry->{type}; push @$results, "$type\n"; } push @$results, "\t$entry->{name} - $entry->{reference}\n"; }
In reply to Re^5: Accessing this array ref.
by Anonymous Monk
in thread Accessing this array ref.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |