- or download this
perl -pe "chomp;" text.txt
- or download this
LINE: while (defined($_ = <ARGV>)) {
chomp $_;
...
continue {
die "-p destination: $!\n" unless print $_;
}
- or download this
perl -ne "chomp;print" text.txt
- or download this
LINE: while (defined($_ = <ARGV>)) {
chomp $_;
print $_;
}