Say I'm working in Perl using Catalyst. I assign an array of hashes to a a variable, ie:
my @array = ($some_hash);
$c->stash->{foo}->{bar} = \@array;
How do I select an element from $some_hash, such as 'id', in Template Toolkit? In Perl I can access it via $c->stash->{foo}->{bar}->[0]->id
...
All help is greatly appreciated, and I'm a bit of a Perl newb, so if anything looks out of place, please let me know. Thanks in advance...