in reply to RE: myQuestion.pl
in thread myQuestion.pl
By two sets, do you mean "eq" and "==", "gt" and ">", etc.?
A string comparison is much different than a numeric comparison. Look:
The result?$string = "556foo"; $num = 556; print "string comparison equal" if $string eq $num; print "num comparison equal" if $string == $num;
So if these are the sets of operators that you're referring to, they're definitely not redundant; you couldn't simply drop one set and have the same functionality as you do now.num comparison equal
Are you proposing that we differentiate between string and numeric comparisons in some other way than the operators?
|
---|
In Section
Perl Poetry