Re: simple golf for fun
Phil Carmody <[email protected]> Tue, 16 Jan 2007 11:00:03 -0800 (PST)
| Newsgroups | gmane.comp.lang.perl.golf |
|---|---|
| Message-ID | <[email protected]> |
In response to Phil Carmody <[email protected]> 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 <[email protected]> wrote: <<< -p0 $_ x=/^((.*)(.*) (?=\2.\3 |$))*$/ >>> Nice indeed. But would this count as a -4 Magoo? -p0 s/^((.*)(.*) (?=\2.\3 |$))*$// Phil () ASCII ribbon campaign () Hopeless ribbon campaign /\ against HTML mail /\ against gratuitous bloodshed [stolen with permission from Daniel B. Cristofani] ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news