<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3429" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Courier New" color=#000000 size=2>Oops. Hit a&nbsp;subtle bug&nbsp;in my code today because&nbsp;|| considers '' true. </FONT></DIV>
<DIV><FONT face="Courier New" color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" color=#000000 size=2>Be careful out there...&nbsp;&nbsp; :)</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>j</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><BR><FONT face="Courier New" size=2>Index: Model/eWin/Transactions.pm<BR>===================================================================<BR>--- Model/eWin/Transactions.pm&nbsp; (revision 3467)<BR>+++ Model/eWin/Transactions.pm&nbsp; (working copy)<BR>@@ -108,7 +108,7 @@<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my $amount = $pms-&gt;{$tran_code};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $sth-&gt;execute($property, $tran_code);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my ($bucket) = $sth-&gt;fetchrow;<BR>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (not defined $bucket || $bucket eq '???') {<BR>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (not defined $bucket or $bucket eq '???') {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $self-&gt;_complain_via_email($property, $tran_code, $crs);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $bucket = '???';<BR></FONT><FONT face="Courier New" size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>Bug demonstrated in the debugger.&nbsp;&nbsp; :)</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>&nbsp; DB&lt;19&gt; p $bucket<BR>???<BR></FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp; DB&lt;20&gt; x (not defined $bucket || $bucket eq '???')<BR>0&nbsp; ''<BR></FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp;DB&lt;21&gt; x (not defined $bucket or $bucket eq '???')<BR>0&nbsp; 1</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV></BODY></HTML>