Note that chomp() removes the current record separator so it won't by default work with DOS textfiles under unix for example.my $out; while (<>) { chomp; $out .= $_; }
In reply to Re: How to slurp files and join lines
by Joost
in thread How to slurp files and join lines
by alecclews
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |