fireartist has asked for the wisdom of the Perl Monks concerning the following question:
{ 0 => ['price'], 23 => ['brightness', 'resolution', 'weight'], }
Which returns brightnessuse strict; my $sort; unless ($sort = do ('G4 HD:Desktop Folder:sort.pl')) { die ("Could not open config file"); } print $sort->{23}[0];
my $search = 'price'; my $column = 23; foreach ($sort->{$column}) { #(search each indices for $search) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dereferencing a hash reference to a Hash of Arrays
by Abigail-II (Bishop) on Jun 19, 2002 at 11:31 UTC | |
|
Re: Dereferencing a hash reference to a Hash of Arrays
by jmcnamara (Monsignor) on Jun 19, 2002 at 10:14 UTC | |
|
Re: Dereferencing a hash reference to a Hash of Arrays
by Chmrr (Vicar) on Jun 19, 2002 at 10:08 UTC | |
|
(tye)Re: Dereferencing a hash reference to a Hash of Arrays
by tye (Sage) on Jun 19, 2002 at 16:06 UTC | |
|
Re: Dereferencing a hash reference to a Hash of Arrays
by DamnDirtyApe (Curate) on Jun 19, 2002 at 13:44 UTC |