Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

RE: RE: myQuestion.pl

by btrott (Parson)
on Apr 11, 2000 at 20:09 UTC ( [id://7318]=note: print w/replies, xml ) Need Help??


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:

$string = "556foo"; $num = 556; print "string comparison equal" if $string eq $num; print "num comparison equal" if $string == $num;
The result?
num comparison equal
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.

Are you proposing that we differentiate between string and numeric comparisons in some other way than the operators?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://7318]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-20 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found