in reply to Re: Figuring out some data structure
in thread Figuring out some data structure

Small nit: It's more like

$labels{$tablename} = [] if !defined $labels{$tablename}; push @{$labels{$tablename}}, $_;

Replies are listed 'Best First'.
Re^3: Figuring out some data structure
by gmargo (Hermit) on Nov 01, 2009 at 20:32 UTC

    I stand corrected.
    If the $labels{$tablename} already exists but has an undefined value, then that "undef" is replaced with a reference to new anonymous array. I wish this was documented better.