<div dir="ltr">use Test::More tests=>2;<br><br>my $str = "-0";<br>ok($str>=0);<br>ok($str ge 0);<br><br> <br>--matt<br><br><div class="gmail_quote">On Fri, Oct 10, 2008 at 7:52 AM, <span dir="ltr"><<a href="mailto:grand-rapids-pm-list@pm.org">grand-rapids-pm-list@pm.org</a>></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's something that tripped me up that I thought I'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 >= 0<br>$a ge 0<br>
<br>Q2: Ok, it isn'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'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. Do the world a favor and don't act like one. -- Dr. Stephen Falken, "War Games", The Movie<br>
</div>