Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use warnings; my @staff = ( { age => 21, position => 'programmer', }, { age => 23, position => 'administrative assistant', }, );
print $staff[1]->{age};
my @staff = ( [{ age => 21, position => 'programmer', }], [{ age => 23, position => 'administrative assistant', }], );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Seemingly enigmatic data structures
by lidden (Curate) on Mar 05, 2005 at 05:19 UTC | |
|
Re: Seemingly enigmatic data structures
by Prior Nacre V (Hermit) on Mar 05, 2005 at 06:34 UTC | |
by tphyahoo (Vicar) on Mar 05, 2005 at 12:16 UTC | |
by merlyn (Sage) on Mar 05, 2005 at 13:55 UTC | |
by tphyahoo (Vicar) on Mar 05, 2005 at 17:39 UTC | |
by Joost (Canon) on Mar 05, 2005 at 18:01 UTC | |
|
Re: Seemingly enigmatic data structures
by sh1tn (Priest) on Mar 05, 2005 at 13:37 UTC |