in reply to Re^2: unexpected result using '>='
in thread unexpected result using '>='

You could use ge rather than >= which stringises the values.

Your original code then prints:

Content-type: text/html 119.8 ::239.6<br>

DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^4: unexpected result using '>='
by Thelonius (Priest) on Aug 17, 2006 at 16:31 UTC
    But you almost never want to use ge for comparing numbers. For example,
    my $x = 3; my $y = 20; if ($x ge $y) { print "$x ge $y\n"; }
    will print "3 ge 20".
Re^4: unexpected result using '>='
by jonnyfolk (Vicar) on Aug 16, 2006 at 23:33 UTC
    Many thanks for that - much closer to what I was expecting to see! I shall read up on the difference between >= and ge in the morning (it's now 1:30am CET!)