![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re^3: Seeing if two numbers have the same signby demerphq (Chancellor) |
on Jan 11, 2008 at 19:23 UTC ( #661956=note: print w/replies, xml ) | Need Help?? |
Hmm. I didnt actually test it and had assumed that the result of binary xor was going to be signed, but of course its unsigned, hence the xor ideas doesnt work as written. My bad. Sorry. Id just use the $x<0 == $y<0 approach anyway. :-)
--- $world=~s/war/peace/g
In Section
Seekers of Perl Wisdom
|
|