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


in reply to truth in while condition

You haven't chomped the newline.

johngg@shiraz:~/perl/Monks$ perl -E ' $_ = qq{0\n}; say $_ ? q{True} : q{False}; chomp; say $_ ? q{True} : q{False};' True False

Cheers,

JohnGG