<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
So.. not sure if the answer was given yet. Someone hinted, i thought, when they mentioned the ascii character set.<div><br></div><div>The 'ge' comparison operator (i think) uses the ascii table to compare strings. On the ascii table, the character 0 (zero) is not the lowest. Most non-alphanumeric characters are below zero on the table. So for example, a right bracket will be lower than zero.</div><div><br></div><div>It should be noted that, if I am right, i had to look it up. I did not know this off the top of my head.</div><div><br></div><div>- Brian</div><div><br><div><div>On Oct 10, 2008, at 10:52 AM, <a href="mailto:grand-rapids-pm-list@pm.org">grand-rapids-pm-list@pm.org</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">grand-rapids-pm-list mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:grand-rapids-pm-list@pm.org">grand-rapids-pm-list@pm.org</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://mail.pm.org/mailman/listinfo/grand-rapids-pm-list">http://mail.pm.org/mailman/listinfo/grand-rapids-pm-list</a></div> </blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>Brian Barto</div><div>616.856.4551</div><div><a href="mailto:bbarto@stacksys.com">bbarto@stacksys.com</a></div><div><br class="webkit-block-placeholder"></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>