in reply to $var == 1 fails when $var = 1

Strange, I seem to remember someone (Laurent?) already replying in this thread with this classic link

What Every Programmer Should Know About Floating-Point Arithmetic

Well once again.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice