Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I understand the keys and dereferencing the hash ref but what is the -1 doing? In the code this is from, the resulting list from the keys function is passed into a map functionkeys %$hash_ref [-1]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: what is keys %$hash_ref [-1]
by philipbailey (Curate) on Apr 27, 2011 at 19:17 UTC | |
|
Re: what is keys %$hash_ref [-1]
by ikegami (Patriarch) on Apr 27, 2011 at 19:18 UTC | |
|
Re: what is keys %$hash_ref [-1]
by wind (Priest) on Apr 27, 2011 at 18:39 UTC | |
|
Re: what is keys %$hash_ref [-1]
by AnomalousMonk (Archbishop) on Apr 27, 2011 at 22:52 UTC | |
|
Re: what is keys %$hash_ref [-1]
by Anonymous Monk on Apr 28, 2011 at 07:43 UTC | |
|
Re: what is keys %$hash_ref [-1]
by Anonymous Monk on Apr 27, 2011 at 18:39 UTC |