Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: check if 2 values are equal

by thedoe (Monk)
on Jan 24, 2006 at 21:57 UTC ( [id://525328]=note: print w/replies, xml ) Need Help??


in reply to Re: check if 2 values are equal
in thread check if 2 values are equal

I'm a bit confused. Shouldn't

>0e0<, >0<: different
be a match?

Replies are listed 'Best First'.
Re^3: check if 2 values are equal
by GrandFather (Saint) on Jan 24, 2006 at 22:30 UTC

    0e0 and 0 are different as a string and the same as a number. OP seems to like it evaluated as different. A solution involving looks_like_number is required to get the result you would like, else 'x' and 'y' would be a match (0 == 0).


    DWIM is Perl's answer to Gödel
Re^3: check if 2 values are equal
by thedoe (Monk) on Jan 25, 2006 at 15:54 UTC

Log In?
Username:
Password:

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

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

    No recent polls found