Hi again

I have successfully managed to read my csv file into a hash. I know have a
hash containing value pairs of:

product_id -- number_of_visits

I know I can sort the hash by the keys, but is there any way to sort the
hash by the values of the keys? Any recommendations?

Thanks in advance.

Evan Morris
[EMAIL PROTECTED]
Tel: +27 11 792 2777
Fax: +27 11 792 2711

----- Original Message -----
From: "$Bill Luebkert" <[EMAIL PROTECTED]>
To: "Evan Morris" <[EMAIL PROTECTED]>
Cc: "Active Perl" <[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 10:16 AM
Subject: Re: Help speeding up code (quite long)
> Use a hash and increment the count for each reference encountered.
>
> $hash{unique_id_1}{desc} = $item_name;
> $hash{unique_id_1}{visits}++;


_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to