in reply to Re: How to slurp files and join lines
in thread How to slurp files and join lines

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'.

Replies are listed 'Best First'.
Re^3: How to slurp files and join lines
by Forsaken (Friar) on May 26, 2005 at 16:53 UTC
    That's ok, if you allow me to claim to the term "chumped" ;-)


    Remember rule one...