Re: Please explain

2002-04-08 Thread Ronald J Kimball
On Mon, Apr 08, 2002 at 02:07:03PM -0700, Mark Schoonover wrote: > > --=={First, sort puts its arguments into list context. > > Cool so far... > > --=={This is then sorted by the > --=={sort, and two words are anagrams if and only if they agree > --=={about their sorted letters. > > Huh?? Thi

Re: Blast from the past: "Triple Challenge Tight Coding"

2002-04-16 Thread Ronald J Kimball
On Tue, Apr 16, 2002 at 11:05:29AM +1000, [EMAIL PROTECTED] wrote: > > BTW, I was blown away by Ton using the 'x' modifier. > Never in my wildest dreams could I have imagined that > this modifier would have been useful in golf! I used /x in a solution to the 4 Consecutive Letters challenge on FW

Re: PGAS code example

2002-04-26 Thread Ronald J Kimball
On Fri, Apr 26, 2002 at 09:51:11PM +0200, Mail WebOn AS wrote: > Was looking through the PGAS code and ran into these lines : > > # Is there a better way to do this? Probably > my $day = int($time_left/(60*60*24)); > my $hour = int(($time_left%(60*60*24))/(60*60)); > my $min = int((($time_left%

Re: Is Bob getting laZy?

2002-05-02 Thread Ronald J Kimball
On Thu, May 02, 2002 at 05:39:53PM +0200, Eugene van der Pijll wrote: > En op 02 mei 2002 sprak Ala Qumsieh: > > > > Just a stupid question: > > > > Since the best score for Cantor is 34.13, and that for Kolakoski is 52.13, > > shouldn't BoB be at 86.26 instead of the pathetic 88.28? > > BoB co

Re: Shortest JAPH?

2002-05-09 Thread Ronald J Kimball
On Thu, May 09, 2002 at 08:14:29PM +0100, Jonathan E. Paton wrote: > > Just to save some of you experiementers some time, I'll share a failed > > attempt. In hindsight, it's pretty obvious that it should fail, but I > > felt like trying it anyway: > > > > perl -MCompress::Zlib -e'print compress"

Re: eugene's solution

2002-06-12 Thread Ronald J Kimball
On Wed, Jun 12, 2002 at 07:42:55PM +0200, Eugene van der Pijll wrote: > Earliest valid solutions: > > Eugene 2:56 > Keith 5:09 > Rick 6:07 > Ton 6:10 > Ronald Kimball 6:14 (his final solution...) You'll have to take my word for it when I say this was due more to a lack of time than of ability.

Re: Hurrah! /-\ is a nostril ahead of `/ (yet again)

2002-07-03 Thread Ronald J Kimball
On Thu, Jul 04, 2002 at 10:07:36AM +1000, [EMAIL PROTECTED] wrote: > > BTW, I symphathize with FatPhil. By a process > > akin to natural selection, the standard of > > golf is definitely going up. The weaker players > > are giving up and the herd is thinning... > > Hey! I resemble^H^H^H^Hnt that

Re: more minigolf

2002-07-11 Thread Ronald J Kimball
On Fri, Jul 12, 2002 at 12:35:16PM +1000, [EMAIL PROTECTED] wrote: > En op 12 juli 2002 sprak The Alien: > > I claim: > > $|-- and --$| as toggle. > > ~- as a prefix -1 construct (e.g. in ~-pop) > > > > I would be surprised if these weren't known > > before, but at least I discovered them inde

Re: Son of (-ugene's Cantor

2002-08-21 Thread Ronald J Kimball
On Wed, Aug 21, 2002 at 08:47:32AM +0100, Piers Cawley wrote: > [EMAIL PROTECTED] writes: > > > En op 18 augustus 2002 sprak Yorkshireman Piers Cawley: > > > Tee hee. > > > > > > -l $_=$"x2**pop;s'$'/\\',print,s/\\../$&^PC1^PLM/egwhile+s\^ \\ > > > > > > I *thought* that lookbehind looked a litt

Re: First posts of some famous golfers

2002-08-26 Thread Ronald J Kimball
On Mon, Aug 26, 2002 at 08:20:49PM +0200, Eugene van der Pijll wrote: > En op 26 augustus 2002 sprak [EMAIL PROTECTED]: > > Here are the first posts of some > > famous golfers to fwp (apologies if I have made any > > mistakes or left anyone off). > > > > &

Re: First posts of some famous golfers

2002-08-26 Thread Ronald J Kimball
On Mon, Aug 26, 2002 at 10:17:06PM -0400, Keith C. Ivey wrote: > 1997-12-04: Ronald Kimball, perl.porters-gw, reporting a bug in > the debugger > http://groups.google.com/groups?selm=19971204.RAA17691%40gabby.vgi.com That's ones a few months and a couple hundred messages late; I p

Re: A new golf "Automatic Editing" has started

2003-08-30 Thread Ronald J Kimball
On Fri, Aug 29, 2003 at 10:27:10PM -, Mtv Europe wrote: > Hello Daniel! > > [EMAIL PROTECTED] (Daniel Tiefnig) wrote: > > > Well, you could still say "a" -> "a".. > > Nope, it's not permitted. Generic rule #2, "The program is expected to > finish in a reasonable time", so input that leads

Re: shootout!

2003-09-11 Thread Ronald J Kimball
On Wed, Sep 10, 2003 at 04:52:30PM -0700, Phil Carmody wrote: > --- Ala Qumsieh <[EMAIL PROTECTED]> wrote: > > http://www.bagley.org/~doug/shootout/bench/regexmatch/regexmatch.perl > > > ? > > > > I couldn't understand what's the purpose of the > > shootout? Performance? Character count? > > Thei

Re: Shortest non-numeric Perl expression for each number

2004-03-11 Thread Ronald J Kimball
On Thu, Mar 11, 2004 at 04:13:01PM +1100, Andrew Savige wrote: > I'm interested to learn the shortest Perl expression for each > number -- but without using any numbers. Here's what I've come > up with so far. Improvements welcome. Oh, and please feel free > to extend the table below ($X[60] being

Re: simple golf for fun

2007-01-16 Thread Ronald J Kimball
On Tue, Jan 16, 2007 at 04:59:51PM -0800, Phil Carmody wrote: > --- Juho Snellman <[EMAIL PROTECTED]> wrote: > > Phil Carmody <[EMAIL PROTECTED]> writes: > > > -p0 s/^((.*)(.*) > > > (?=\2.\3 > > > |$))*$// > > > > Assuming the last line is also newline-terminated: > > Fair assumption > > > -n0

Re: simple golf for fun

2007-01-17 Thread Ronald J Kimball
On Wed, Jan 17, 2007 at 01:25:20PM +0200, Juho Snellman wrote: > Phil Carmody <[EMAIL PROTECTED]> writes: > > 1//regexp/ would crash on the same thing that s/regexp// fails to blank. > > So I thought that might be the intended (not space-saving) technique with > > a rather bizarre unnecessary use o

Re: regexp quickie

2007-06-27 Thread Ronald J Kimball
On Wed, Jun 27, 2007 at 05:45:54AM -0700, Phil Carmody wrote: > Say I had a string satisfying /^[A-Z_]{6}$/, but not equal to '__' > and I wish to extract from that the 1 or 2 letters which are closest to > the n-th character in the string. Is there a simple regexp to perform > that task? > >

Re: regexp quickie

2007-06-27 Thread Ronald J Kimball
On Wed, Jun 27, 2007 at 02:26:35PM -0500, [EMAIL PROTECTED] wrote: > Mine (borrowing RJK's testing code): $1 will be the last letter > (non-underscore) before or at the target location; $2 will be the first > letter at or after the target location, or the last letter if no such > letter exists. >

Re: A challenge to explain the strange results (under linux)

2008-06-11 Thread Ronald J Kimball
I would bet that your color.txt file has Windows line endings on all platforms. If you do this: perl test.pl color.txt | less you may find that you're getting output after all. Make sure color.txt has Unix line endings on the Linux machines. Here's one way to fix it: perl -pi -e 'tr/\r//