Welcome to the Monastery | |
PerlMonks |
Re^3: xs modifying passed valueby afoken (Chancellor) |
on Nov 18, 2012 at 07:57 UTC ( [id://1004384]=note: print w/replies, xml ) | Need Help?? |
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". ;-)
In Section
Seekers of Perl Wisdom
|
|