in reply to perl numeric expressions

Floating point equality tests are, generally, conceptually, poor practice; I was warned about this when I took CS101 in 1971.

Read, for some enlightment, David Goldberg, "What Every Computer Scientist Should Know about Floating Point" ACM Computing Surveys, 1991, Volume 23, Issue 1, pp 5-48.

emc

And remember:
use strict; use warnings;