$_= sprintf "%.2f", $_ for values( my %rounded= %stats );
But that won't work in old Perls where values doesn't return a list of aliases.
- tye
In reply to Re: rounding off all members of a hash (for values)
by tye
in thread rounding off all members of a hash
by vindaloo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |