chomp(); # does not expose anything chop(); # can expose a fault in some of the combinations but only by functional testing (no die). chomp() or die; # exposes that there is a fault somewhere, although further investigation is needed as to where. ( chop() eq $/ ) or die; # same effect as chomp() or die.