3 May
2008
3 May
'08
20:24
On Saturday 03 May 2008 22:13:02 David C. Rankin wrote:
$TEMPC=<STDIN>;
print "\$TEMPC before chomp; $TEMPC\n";
$TEMPC=($TEMPC/1.0); # Works! Removes New Line from Number #$TEMPC=chomp($TEMPC); # Does not work, returns $TEMPC as "1", why?
chomp() doesn't return the chomped string, it returns the number of removed characters (in this case probably just '\n') Instead, try just chomp($TEMPC) and don't assign it Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org