in reply to Re^3: Appending values to existing hash key
in thread Appending values to existing hash key

The statement :
join( ', ' => map { $_, @{ $hash{$key}{$_} } } keys $hash{$key} ), +$/;
should read:
join( ', ' => map { $_, @{ $hash{$key}{$_} } } keys %{ $hash{$key} +} ), $/;
Nice shortcut (++) - nesting the hashes !

        What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?
              -Larry Wall, 1992

Replies are listed 'Best First'.
Re^5: Appending values to existing hash key
by 2teez (Vicar) on Mar 21, 2014 at 06:56 UTC

    Thanks NetWallah for the extra eye! Staying up too late with C is not helping! And so do perl version 5.16.1! Am downgrading to v5.8.1! Lol :)

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me