drone has asked for the wisdom of the Perl Monks concerning the following question:
This apparently works but I have never seen something like that in the manuals or Perl books.$value = %hash->{key};
@array = ('a','b','c'); print @array->[2], "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unusual way of accessing hash values
by gaal (Parson) on May 05, 2005 at 12:04 UTC | |
|
Re: Unusual way of accessing hash values
by gellyfish (Monsignor) on May 05, 2005 at 12:05 UTC | |
|
Re: Unusual way of accessing hash values
by polettix (Vicar) on May 05, 2005 at 12:42 UTC | |
|
Re: Unusual way of accessing hash values
by drone (Monk) on May 05, 2005 at 12:13 UTC | |
by tlm (Prior) on May 05, 2005 at 13:20 UTC | |
by reasonablekeith (Deacon) on May 05, 2005 at 12:27 UTC | |
by Fletch (Bishop) on May 05, 2005 at 17:36 UTC |