Re: A little text file munging golf on the list
[email protected] (Marius Ascheberg)
| Newsgroups | perl.golf |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 13 Mar 2003 17:20:00 +0100 Marius Ascheberg <[email protected]> (I) wrote: > So we're back to 32 strokes. > > #!perl -p0 > s/^((\S+).+)\n\2 /$1 /m&&redo I was too dumb, again. So here's my last one, which seems to work and uses 33 strokes: #!perl -p0 s/^((\S+) .+)\n\2 /$1 /m&&redo