Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^3: xs modifying passed value

by afoken (Prior)
on Nov 18, 2012 at 07:57 UTC ( #1004384=note: print w/ replies, xml ) Need Help??

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

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". ;-)

Comment on Re^3: xs modifying passed value
Select or Download Code
Replies are listed 'Best First'.
Re^4: xs modifying passed value
by Festus Hagen (Novice) on Nov 19, 2012 at 13:31 UTC
    Excellent way to remember it ...

    Thank you!

    fh : )_~

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-11-29 13:30 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls