Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Comparison based on type of value held by variables

by ranjan_jajodia (Monk)
on Oct 18, 2005 at 13:52 UTC ( [id://500986]=note: print w/replies, xml ) Need Help??


in reply to Re: Comparison based on type of value held by variables
in thread Comparison based on type of value held by variables

Hi Skeeve,
So does that mean that all strings evaluate to 0 value in numerical comparison?
Regards,
Ranjan
  • Comment on Re^2: Comparison based on type of value held by variables

Replies are listed 'Best First'.
Re^3: Comparison based on type of value held by variables
by Skeeve (Parson) on Oct 18, 2005 at 14:10 UTC

    Yes. The numerical value of any string that is not a valid representation of a number is 0.


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
      Thanks Skeeve. I will keep that in mind.
      Regards,
      Ranjan

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2024-04-18 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found