Help for this page

Select Code to Download


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