And a requisite, ill-advised and derivative one-liner:
my $slomped = join "", do { local $/; <>} =~ m/([^\n]+)/g;
It's slower, messier, and hard to read. On the plus-side, I'd like to coin the term 'slomped'.
In reply to Re^2: How to slurp files and join lines
by fishbot_v2
in thread How to slurp files and join lines
by alecclews
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |