in reply to Re^2: Build tree data structure from DB (flat) data; function golf
in thread Build tree data structure from DB (flat) data; function golf

The structure's ideal format depends on how it will be used

gryphon's output seems like something intended for HTML::Template, which only accepts scalars or arrays of hashrefs unfortunately. It wouldn't be able to iterate over your proposed structure.

  • Comment on Re^3: Build tree data structure from DB (flat) data; function golf