Front page | perl.golf |
Postings from January 2007
Re: simple golf for fun
Thread Previous
|
Thread Next
From:
perl-golf
Date:
January 16, 2007 12:17
Subject:
Re: simple golf for fun
Message ID:
eojbq6$t8n$1@post.home.lunix
In article <173192.55140.qm@web25404.mail.ukl.yahoo.com>,
Phil Carmody <thefatphil@yahoo.co.uk> writes:
> In response to Phil Carmody <thefatphil@yahoo.co.uk> saying:
>> > The simple version of the task is to verify that each line of a file is the
>> > insertion of one character somewhere (maybe at the start or the end) into
>> > the prior line.
>
> --- Ton Hospel <perl-golf@ton.iguana.be> wrote:
> <<<
>
> -p0 $_ x=/^((.*)(.*)
> (?=\2.\3
>|$))*$/
>
>>>>
>
> Nice indeed. But would this count as a -4 Magoo?
>
> -p0 s/^((.*)(.*)
> (?=\2.\3
>|$))*$//
>
Absolutely
Thread Previous
|
Thread Next