On Monday, December 22, 2003, at 09:52 AM, Nathan Torkington wrote:
On Dec 22, 2003, at 8:50 AM, Jerry LeVan wrote:print (5.0/9.0)*($ARGV[0]-32.0), " Centigrade\n" ;
I had to grab the Perl book and found "If it looks like a function it is a function".
Y'all ever been bit by this type of misdirection?
All the time.
Yeah. But now my brain gives a compile-time error before perl gives a runtime oopsie.
A simple way to disambiguate is with the unary '+' operator:
print +(5.0/9.0)*($ARGV[0]-32.0), " Centigrade\n" ;
-Ken
