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

Yup, Thank you.

I always get em backwards ... :(

fh : )_~

Replies are listed 'Best First'.
Re^3: xs modifying passed value
by afoken (Chancellor) 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 (==, !=, <, >, <=, >=, <=>).


    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!

      fh : )_~