Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

RE: RE: Mysterious the ways: == and eq

by rjimlad (Acolyte)
on May 25, 2000 at 23:52 UTC ( [id://14853]=note: print w/replies, xml ) Need Help??


in reply to RE: Mysterious the ways: == and eq
in thread Mysterious the ways: == and eq

Well said. Although the language is typeless, it is critical that logical query expressions be type-specific. For example, it might be critical to tell if a string is, exactly, "1.0" (eg. for a version number). Of course, you can use /^1\.0$/ (I think that's right :) ) but that's an inefficient approach. For efficiency's sake, 'eq' is needed, and 'gt' and 'lt' have quite different meanings to > and <. In perl, "1.2" > "1a", but "1.2" lt "1a". If I remember correctly :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-19 16:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found