Odd problem

Edwardson, Tony Tony.Edwardson at commerzbank.com
Mon Apr 21 07:09:40 PDT 2008


We have a perl script which apparently works fine on Solaris 2.8 but fails on Solaris 10
On Solaris 10 a comparison between to seemingly identical numbers thinks thay are different :-
Here's a snippet fro the code
 
        print Dumper(\@prices, $price, $columns->{$MPSET});
        for (my $i = 0; $i < scalar(@{ $columns->{$MPSET} }); $i++) {
                if ($prices[$i] != $price) {
                    print Dumper("DIFFERENT", $i, $prices[$i], $price);
                }
        }
And here's what it is outputing
$VAR1 = [
          '1.6771678',
          '1.6771678'
        ];
$VAR2 = '1.6771678';
$VAR3 = [
          'BID',
          'ASK'
        ];
$VAR1 = 'DIFFER';
$VAR2 = 0;
$VAR3 = '1.6771678';
$VAR4 = '1.6771678';
$VAR1 = 'DIFFER';
$VAR2 = 1;
$VAR3 = '1.6771678';
$VAR4 = '1.6771678';

So, it thinks that '1.6771678' is different from '1.6771678';
 
Any ideas anyone ?

 
Regards/Mit freundlichen Grüßen,

Tony Edwardson

Commerzbank AG
Commerzbank Corporates & Markets
ZIT-A CMA / Murex IT Team London

60 Gracechurch Street

London EC3V 0HR

United Kingdom

+44-207-469-3452

tony.edwardson at commerzbank.com

-- 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/miltonkeynes-pm/attachments/20080421/00303e8f/attachment.html 


More information about the MiltonKeynes-pm mailing list