Hi,
Lets say I have the following hash structure in perl:
pls tel me how will I perform sorting on this hash.
Reply asap...
Lets say I have the following hash structure in perl:
Code:
my %products (
1 => {
name => "Floor Wax",
wholesale => "50.00",
retail => "abc1.doc",
category => "abc",
},
2 => {
name => "Paper Towel",
wholesale => "20.00",
retail => "abc2.doc",
category => "abc",
},
3 => {
name => "Hand Soap",
wholesale => "30.00",
retail => "xyz1.doc",
category => "xyz",
},
);
I want the o/p as :
abc
abc1.doc
abc2.doc
xyz
xyz1.doc
Reply asap...
Comment