Re: [tcltk-perl] return of 1=>1.0 transformation error
Brought to you by:
hobbs
From: Gisle A. <gi...@Ac...> - 2004-04-28 17:14:22
|
"Jeff Hobbs" <je...@Ac...> writes: > We see that the problem is at -row 1, so that last line is the > issue. That this becomes SvNOK w/o being SvIOK in Perl 5.6 > seems "just wrong" to me (and obviously to others as 5.8 corrects > the issue). You guys are right that I should try without the > SvIOK as well, but still, this is a wacky promotion behavior. There are no integer literals in Perl. All numbers and arithmetics are/are done with doubles. If you want to force integers you need to declare that intention with the 'use integer' pragma. perl might try to use integers when it can get away with it and newer version are more aggressively doing so, but there are no guarantees. --Gisle |