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
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
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%
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
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"
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.
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
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
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
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).
> >
> >
&
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
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
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
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
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
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
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?
>
>
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.
>
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//
19 matches
Mail list logo