in reply to Re: Comparing numbers
in thread Comparing numbers

ok, -w and use warnings don't make sense.
Yes, you are correct with the equal - output and the numbers.
change
my @file = ('0.13','0.14','0.14'); my $diff = 0;
to
my @file = (0.14,0.14); my $diff = -1;
and here you got your output
Difference between 0.14 and 0.14 is 0