in reply to Data Structure Transformation

How would a module make the transformation much easier? What would you expect a call to the transform function provided by such a module to look like?

As an aside, using map in void context is frowned on. It is generally considered clearer to use a for statement modifier:

push @{$var1->{$_->{city}}}, $_->{name} for @$var;
True laziness is hard work

Replies are listed 'Best First'.
Re^2: Data Structure Transformation
by Anonymous Monk on Jan 31, 2011 at 21:18 UTC
    Thanks for the 'map' advice.
    I like to provide same functionality in Template ( TT2). I do not see an easy way. A module plugin would help. I