On Tue, Jan 29, 2002 at 01:54:39PM -0800, John wrote:
> Is there any way to get each to sort?

In the way you mean, no.

The key-value pairs returned by 'each' are sorted, they're just not sorted
how you want them to be sorted :)  Through Perl's tie mechanism the
key-values returned by 'each' can be in a specific sorted order, but I doubt
that's a direction you wanted to go.

So, what it comes down to, is: if you don't need the key-value pairs sorted
how you want, and you don't need to modify the hash while iterating over it,
use an 'each' loop.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to