http://www.perlmonks.org?node_id=661959


in reply to Re: Seeing if two numbers have the same sign
in thread Seeing if two numbers have the same sign

You probably meant !defined() where you put undef().

And personally i think your code is much harder to understand than what i posted. Longer is very often less comprehensible than shorter for the simple fact that most people can only operate on a small number of items at a time. (8 or so).

---
$world=~s/war/peace/g