Ahh...I missed that. Now that I have that part corrected...I have tried to sort using both cmp and <=>...both are returning the same results which is:
2008-03-24
New 1 Month Subscription 1
New 12 Month Subscription 5
New 14 Day Trial Subscription 3
New 6 Month Subscription 6
I understand that is it using the ASCII value to sort right now, which is not what I want....
User Profile
Collapse
-
Hash sort weirdness
I am having trouble sorting secondary keys in a multi-level hash. I have a sample program that exhibits the problem...the following code is sorting New 6 Month before New 1 Month. What am I doing wrong?
Thanks in advance.
...Code:#!/usr/bin/perl my %data = ( "2008-03-24" => { "New 1 Month Subscription" => {
No activity results to display
Show More
Leave a comment: