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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Data Structure Transformation
by Anonymous Monk on Jan 31, 2011 at 21:18 UTC |