How do I sort a hash that has values of PASS or FAIL
would like to put all FAILS at the top.
I tried code elow but did not work
Thanks
foreach my $key (sort {$status{a} cmp $status{b}} keys %status) {
#foreach my $key (sort keys %status)
print "$key";
print "$status{$key}";
print "$key\n>";
}
#foreach my $key (sort keys %status)
print "$key";
print "$status{$key}";
print "$key\n>";
}
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
