>foreach(sort { $hash{$a} <=> $hash{$b} } values %hash) { > print "$_\n"; >}
Err... This will not work... You will be trying to get a hash value based on the value... It's early.... my %hash=(thumb='122',tom=>'21',muffit=>'48',miss=>'31'); foreach(sort { $hash{$a} <=> $hash{$b} } values %hash) { print "$_\n"; } this will evaluate to this in the sort: $hash{122} <=> $hash{21} (as an example) This will not give you any sort at all since both values are null... Shawn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]