in reply to What is $x{$y}?
It looks like you have a array @x of array refs, of which you want the array ref at index $y.
You have a hash %x of array refs, of which you want the array ref with key $y.
The @{ } that surrounds all of it means you're dereferencing the array ref at index $y and getting the array that the array ref points to.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: What is $x{$y}?
by dave_the_m (Monsignor) on Sep 10, 2012 at 19:12 UTC | |
by Riales (Hermit) on Sep 10, 2012 at 19:16 UTC | |
by invaderzard (Acolyte) on Sep 10, 2012 at 23:59 UTC | |
by AnomalousMonk (Archbishop) on Sep 11, 2012 at 00:30 UTC |
In Section
Seekers of Perl Wisdom