Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

RE: RE: myQuestion.pl

by btrott (Parson)
on Apr 11, 2000 at 20:09 UTC ( #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?


Comment on RE: RE: myQuestion.pl
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2014-12-26 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls