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


in reply to Chomp doesn't work

Off topic, but I strongly recommend you NOT use locale;

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