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


in reply to Re^3: A refactoring trap
in thread A refactoring trap

No it still works with chomp:
while(chomp (my $line = <DATA>)){
At least with newer perl versions. Tried with perl5.8.6.