Why create an extra hash?
The sort by default sorts alfanumeric, so in your case 30 is better than 4.print +(sort { $a <=> $b } values %hash)[-1];
In reply to Re: Re: How to retrieve the worst value?
by mce
in thread How to retrieve the worst value?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |