Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: xs modifying passed value

by Festus Hagen (Novice)
on Nov 18, 2012 at 01:48 UTC ( #1004365=note: print w/ replies, xml ) Need Help??


in reply to Re: xs modifying passed value
in thread xs modifying passed value

Yup, Thank you.

I always get em backwards ... :(

-Enjoy
fh : )_~


Comment on Re^2: xs modifying passed value
Re^3: xs modifying passed value
by afoken (Parson) on Nov 18, 2012 at 07:57 UTC
    I always get em backwards

    Easy: If you want to compare characters (strings, char* or char[] if you know C), use the operators made from characters (eq, ne, lt, gt, le, ge, cmp). If you want to compare numbers like in mathematics, use the operators you know from mathematics (==, !=, <, >, <=, >=, <=>).

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      Excellent way to remember it ...

      Thank you!

      -Enjoy
      fh : )_~

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-10-24 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls