in reply to Joining an array of hashes

You were *this* close:

my $res = join(",",@{ $v->{name} });

Update: I think kyle is correct. I should have asked to see what the dump of @v is.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re^2: Joining an array of hashes
by Rodster001 (Pilgrim) on Dec 11, 2008 at 19:02 UTC
    Yeah, Kyle's suggestion was correct. Map worked great.

    Thanks! Just FYI here is Dumper($v) output

    $VAR1 = [, {, 'name' => 'Cat', 'id' => '7670', }, {, 'name' => 'Dog', 'id' => '7671', }, ];, $VAR1 = [, {, 'name' => 'Cat', 'id' => '7670', }, ];,