in reply to C-Style Struct?
How about:
my %thing = ( name => 'thing', count => 0, list => [] ); ++$thing{ count }; print $thing{ name }; print $thing{ list }[ 123 ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: C-Style Struct?
by Anonymous Monk on Aug 08, 2012 at 13:52 UTC |