[grand-rapids-pm-list] Perl Puzzle!

grand-rapids-pm-list at pm.org grand-rapids-pm-list at pm.org
Fri Oct 10 07:52:20 PDT 2008


Here's something that tripped me up that I thought I'd share as a Perl
Puzzle...

Q1: For what value(s) of $a do the following comparisons return different
results?

$a >= 0
$a ge 0

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.


Feel free to reply to the list. I'll post the answer later today if no one
nails it.

-Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/grand-rapids-pm-list/attachments/20081010/b24567a7/attachment.html>


More information about the grand-rapids-pm-list mailing list