What's your fav read/write iterator for a hash's values?
Temperature:
foreach (keys %temp) { $temp{$_}-=32; $temp{$_}*=5/9; }
Percent:
foreach (keys %ratio) { $ratio{$_}*=100; }
In reply to Converting hash values from fahrenheit to celsius. by cheako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |