[San-Diego-pm] A puzzler

Mark T. Johnson markj at matzsoft.com
Tue May 2 21:41:35 PDT 2006


Here's one that has me scratching my head.  How can you have 2 
scalars that are eq but not ==?  Sample output from perl -d

   DB<20> x $deltas{retail}
0  2
   DB<21> x $local->{retail}
0  2
   DB<22> x $deltas{retail} == $local->{retail}
0  ''
   DB<23> x $deltas{retail} eq $local->{retail}
0  1

Is it some how treating one as numeric and the other not?

-- 
--------------------------------------------------------------
Mark T. Johnson
MATZ Software & Consulting
Phone: 858-571-3125
FAX:   858-452-2871


More information about the San-Diego-pm mailing list