Re: Simple Sort Keys Question from a Simpleton

From: Scott Bryce (sbryce_at_scottbryce.com)
Date: 03/17/04


Date: Wed, 17 Mar 2004 10:58:29 -0700

Bumble wrote:

> Hey, been stuck on this for a good couple of hours now (LOL!), I've had it
> working before in a different program of mine

You are going to have to tell us what you mean by "working."

> foreach $key (sort(keys %totsales))

Besides other problems with this code, that others are sure to point
out, are you aware that you never assigned any values to %totsales? If
you iterate over an empty hash, there will be no keys and no values.