Help for this page

Select Code to Download


  1. or download this
    sub multiChomp {
      my @out = @_;
      chomp @out;
      return wantarray ? @out : join '', @out;
    }
    
  2. or download this
    ( my $text = do { local $/, @ARGV = 'foo.txt'; <> } ) =~ s/\n+//g;