in reply to perl newbie question
Sure ... but why wouldn't you want to use s/printf?
At the risk of answering a homework question:
$newtemp =int(100*((($temp-32)*5)/9))/100;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl newbie question
by dsheroh (Monsignor) on Jan 06, 2008 at 17:06 UTC |