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 16:14:21 +0100
Marius Ascheberg <[email protected]> (I) wrote:

> #!perl -p0
> s/^((\S+).+)\n\2/$1/m&&redo

Sorry, but this is just wrong.
It handles 
a a
ab a
wrong.

So we're back to 32 strokes.

#!perl -p0
s/^((\S+).+)\n\2 /$1 /m&&redo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.