<div dir="ltr">use Test::More tests=&gt;2;<br><br>my $str = &quot;-0&quot;;<br>ok($str&gt;=0);<br>ok($str ge 0);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <br>--matt<br><br><div class="gmail_quote">On Fri, Oct 10, 2008 at 7:52 AM,  <span dir="ltr">&lt;<a href="mailto:grand-rapids-pm-list@pm.org">grand-rapids-pm-list@pm.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Here&#39;s something that tripped me up that I thought I&#39;d share as a Perl Puzzle...<br>
<br>Q1: For what value(s) of $a do the following comparisons return different results?<br><br>$a &gt;= 0<br>$a ge 0<br>
<br>Q2: Ok, it isn&#39;t hard to guess. But, why? The answer reveals something unique about Perl that is very important to keep in mind.<br><br><br>Feel free to reply to the list. I&#39;ll post the answer later today if no one nails it.<br>

<br>-Ed<br></div>
<br>_______________________________________________<br>
grand-rapids-pm-list mailing list<br>
<a href="mailto:grand-rapids-pm-list@pm.org">grand-rapids-pm-list@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/grand-rapids-pm-list" target="_blank">http://mail.pm.org/mailman/listinfo/grand-rapids-pm-list</a><br></blockquote></div><br><br clear="all"><br>-- <br>Matthew Heusser,<br>Blog: <a href="http://xndev.blogspot.com">http://xndev.blogspot.com</a><br>
<br>General, you are listening to a machine. &nbsp;Do the world a favor and don&#39;t act like one. -- Dr. Stephen Falken, &quot;War Games&quot;, The Movie<br>
</div>