in reply to Re^5: Accessing this array ref.
in thread Accessing this array ref.
my $results = "Results: "; my $type; for my $entry (@$VAR1) { if ( $entry->{type} ne $type ) { $type = $entry->{type}; $results .= "$type<br />"; } $results .= " $entry->{name} - $entry->{refer +ence}<br />"; }
Update: Now that I've thought about it, it seems you are using HTML::Template or something like it to display your data. And I'm not familiar with that but you probably do want to pass it a structure and not a string.
|
|---|