in reply to scanning hash
From the inside out:keys(%{{reverse %hash}}) <= 1
- %hash in list context returns a list of key,value,key,value
- reverse LIST in list context reverses the list
- { LIST } returns a ref to an anonymous hash with the given list of keys and values
- %{ HASHREF } gets the hash given the reference
- keys %HASH in scalar context returns a count of the keys
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: scanning hash
by tachyon (Chancellor) on Aug 01, 2004 at 10:38 UTC | |
by Aristotle (Chancellor) on Aug 01, 2004 at 14:56 UTC | |
by bageler (Hermit) on Aug 01, 2004 at 15:06 UTC | |
by Aristotle (Chancellor) on Aug 01, 2004 at 15:09 UTC | |
Re^2: scanning hash
by davido (Cardinal) on Aug 01, 2004 at 09:20 UTC | |
Re^2: scanning hash
by Aristotle (Chancellor) on Aug 01, 2004 at 14:40 UTC | |
by ambrus (Abbot) on Aug 01, 2004 at 15:15 UTC | |
by Aristotle (Chancellor) on Aug 01, 2004 at 15:20 UTC | |
by ysth (Canon) on Aug 02, 2004 at 19:50 UTC | |
by Aristotle (Chancellor) on Aug 02, 2004 at 20:13 UTC | |
|
In Section
Seekers of Perl Wisdom