in reply to Disadvantage of using 'eq' operator to compare numbers.
$_ = "Today is 01 Jan 2010";
my ($dayofmonth) = /(\d+)/;
print $dayofmonth eq 1 ? "ok 1\n" : "not ok 1\n";
print $dayofmonth == 1 ? "ok 2\n" : "not ok 2\n";
not ok 1
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (542 votes). Check out past polls.