use strict; use warnings; while (){ chomp; print "$_ "; } print "\n"; __DATA__ welcome to Perl