Re: Golf and the Perl Review

2002-02-09 Thread Philip Newton
On Fri, 8 Feb 2002 09:33:01 -0500, [EMAIL PROTECTED] (Bill -Osx- Jones) wrote: Not to be dumb as a stump, but are you saying that - under Win32 - STDERR would not appear in the console window? That, because of possibly internal Win32 issues, it must always be sent to a file? What I think

RE: Golf and the Perl Review

2002-02-09 Thread Stephen Turner
On Fri, 8 Feb 2002, Patrick Gaskill wrote: It definitely sounds to me like we're supposed to be writing a function. That way we don't worry about where the inputs and outputs are necessarily going. Oh, well that's another possibility. The advantage of golf problems in general taking a file

Re: Golf and the Perl Review

2002-02-08 Thread Bart Lateur
On Fri, 8 Feb 2002 18:35:06 +1100 , [EMAIL PROTECTED] wrote: Jerome Quelin wrote: I think the arbiter program could (should?) be a module, but not the client part. Agreed. We should make things as easy as possible for the customer. No modules to install. Just download and run the test

Re: Golf and the Perl Review

2002-02-08 Thread Bart Lateur
On Fri, 08 Feb 2002 14:00:48 +0100, Bart Lateur wrote: At least, this appears to be working: #! perl -l open STDERR, errors.txt; warn This goes to the file, date = .localtime print Result: . `perl otherscript.pl`; But only (as intended) with a semicolon right after

Re: Golf and the Perl Review

2002-02-08 Thread Morbus Iff
I think the main problem on Win95/98 is capturing STDERR, isn't it? The module installation modules, ExtUtils::MakeMaker, have (or have had) the same problem. Redirecting to another file handle doesn't work. You need the file. Not sure what you mean, here. I've been using this code in the

Re: Golf and the Perl Review

2002-02-08 Thread Bart Lateur
On Fri, 08 Feb 2002 09:06:03 -0500, Morbus Iff wrote: Not sure what you mean, here. I've been using this code in the crossplatform AmphetaDesk [1], and it's been working fine (collecting thousands of warnings from a Win32::GUI, IO:: kills, etc.): # open our log file, turn on autoflush,

Re: Golf and the Perl Review

2002-02-08 Thread Morbus Iff
Hmm... you're still redirecting STDERR to a file. What you can't do, is redirect STDERR to a tied filehandle, or to STDOUT, and hope to capture it all. Oh. Duh. Dammit. Early morning stupidity. Sorry. -- Morbus Iff ( softcore vulcan pr0n rulez ) http://www.disobey.com/

Re: Golf and the Perl Review

2002-02-08 Thread Philippe 'BooK' Bruhat
En réponse à Jeff Bisbee [EMAIL PROTECTED]: What about a web solution. Maybe use golf.perl.org. All your really need is a text field that will accept the golf snippet. What is also cool is that if use something like use.perl.org, where thre are logins so we can have a clear winner and

Re: Golf and the Perl Review

2002-02-08 Thread David H. Adler
On Fri, Feb 08, 2002 at 04:50:46PM +0100, Philippe 'BooK' Bruhat wrote: Please note that a small team of already 6 persons (Dave Hoover, Steffen Muller, Jonathan E. Paton, Jerome Quelin Eugene van der Pijll, me and maybe Andrew Savige) are working to design a module named Games::Golf. Which

Re: Golf and the Perl Review

2002-02-08 Thread Stephen Turner
On Fri, 8 Feb 2002, Rick Klement wrote: However, assuming a filter program like most of the recent golf holes (reading a file with base36 numbers and writing out the decimal equivalent for each line), I'm down to 51 strokes. Well, it does say convert _a_ number. But assuming your rules,

Re: Golf and the Perl Review

2002-02-08 Thread John W. Krahn
Ton Hospel wrote: In article Pine.LNX.3.96.1020208212928.6408A-10@gentoo, Stephen Turner [EMAIL PROTECTED] writes: On Fri, 8 Feb 2002, Stephen Turner wrote: I've got 50 now. 48 (in the converting a whole file game). I really ought to stop playing this until we know the

RE: Golf and the Perl Review

2002-02-08 Thread Patrick Gaskill
With Perl mailing list Subject: Re: Golf and the Perl Review On Fri, 8 Feb 2002, Stephen Turner wrote: I've got 50 now. 48 (in the converting a whole file game). I really ought to stop playing this until we know the rules though... -- Stephen Turner, Cambridge, UK http

Re: Golf and the Perl Review

2002-02-08 Thread Ton Hospel
In article [EMAIL PROTECTED], John W. Krahn [EMAIL PROTECTED] writes: Ton Hospel wrote: mm, assuming a filter of lower case ascii input, nothing allowed to stderr, my first attempt is 44 I think. I've got one at 28 (if I'm counting correctly) Impressive. that's about the size i

RE: Golf and the Perl Review

2002-02-08 Thread Keith C. Ivey
Patrick Gaskill [EMAIL PROTECTED] wrote: As an aside, I'd say that in general I think of math problem golf holes as functions, and text mangling holes as file-suckers. At least it's something to consider for those who may be working on Games::Golf. :) How are functions scored? The number

Re: Golf and the Perl Review

2002-02-08 Thread Keith C. Ivey
Ton Hospel [EMAIL PROTECTED] wrote: mm, assuming a filter of lower case ascii input, nothing allowed to stderr, my first attempt is 44 I think. I don't think lowercase is a safe assumption. The contest said Convert a base 36 number, with the digits [0-9A-Z], to its base 10

Re: Golf and the Perl Review

2002-02-07 Thread Andrew . Savige
Eugene van der Pijll wrote: We probably need two programs: one for the arbiter, and one for the golfers. The routines that they have in common can be put into a module, but I'm not sure if that is the right thing to do. Installing a module can be a problem, especially for beginners. Jerome

Re: Golf and the Perl Review

2002-02-06 Thread Philippe 'BooK' Bruhat
En réponse à [EMAIL PROTECTED]: David H. Adler wrote: If any of you have read The Perl Review (http://www.perl.org/ThePerlReview/), you may have noticed, buried in the back, a golf challenge. To make a long story short, we're looking for someone to be our Master of Golf. I like

Re: Golf and the Perl Review

2002-02-06 Thread Bart Lateur
On Wed, 6 Feb 2002 00:29:53 -0500, Uri Guttman wrote: the kabbalah is a collection of mystical and spiritual jewish teachings and writings over the last two thousand years. it doesn't have anything to do with the word cabal AFAIK. On Wed, 6 Feb 2002 01:02:27 -0500 (EST), Brett W. McCoy wrote:

Re: Golf and the Perl Review

2002-02-06 Thread Stephen Turner
On Wed, 6 Feb 2002, Bart Lateur wrote: On Wed, 6 Feb 2002 00:29:53 -0500, Uri Guttman wrote: the kabbalah is a collection of mystical and spiritual jewish teachings and writings over the last two thousand years. it doesn't have anything to do with the word cabal AFAIK. On Wed, 6 Feb

Re: Golf and the Perl Review

2002-02-06 Thread Stephen Turner
On Wed, 6 Feb 2002, Stephen Turner wrote: Chambers dictionary (the best single-volume British dictionary) says it does. I just checked in the full Oxford English Dictionary too. Excerpts: 1. = CABBALA 1: The Jewish tradition as to the interpretation of the Old Testament. Obs. 1616

Re: Golf and the Perl Review

2002-02-06 Thread Simon Cozens
Bart Lateur: One says yes, the other says no. So what's it gonna be?:-) http://www.snopes.com/language/acronyms/cabal.htm -- emacs: Terminal type emacs is not powerful enough to run Emacs.

Re: Golf and the Perl Review

2002-02-06 Thread Dave Hoover
--- BooK wrote: I think it's high-time fwp developped the module Game::Golf, or Game::PerlGolf, to help handling these contests. This is a great idea. I am very interested in contributing my time/abilities to anything that eases the administration of Perl Golf courses. How would we get

Re: Golf and the Perl Review

2002-02-06 Thread Jerome Quelin
On Mercredi 6 Février 2002 10:53, Philippe 'BooK' Bruhat wrote : I think it's high-time fwp developped the module Game::Golf, or Game::PerlGolf, to help handling these contests. It should have a scoring method (maybe with several scoring rules (embedded newlines, etc) And even better, I

Re: Golf and the Perl Review

2002-02-06 Thread Peter Scott
At 12:00 PM 2/6/2002 +, Stephen Turner wrote: On Wed, 6 Feb 2002, Stephen Turner wrote: Chambers dictionary (the best single-volume British dictionary) says it does. Since I haven't seen anyone else mention it yet, here's the obligatory reference: http://www.perlcabal.com/real.html

Re: Golf and the Perl Review

2002-02-06 Thread David H. Adler
On Wed, Feb 06, 2002 at 06:00:49PM +1100, [EMAIL PROTECTED] wrote: David H. Adler wrote: If any of you have read The Perl Review (http://www.perl.org/ThePerlReview/), you may have noticed, buried in the back, a golf challenge. To make a long story short, we're looking for someone to be

Re: Golf and the Perl Review

2002-02-06 Thread Steffen Mueller
Eugene Van Der Pijll [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | We probably need two programs: one for the arbiter, and one for the | golfers. The routines that they have in common can be put into a module, | but I'm not sure if that is the right thing

Re: Golf and the Perl Review

2002-02-06 Thread Stephen Turner
About this golf marking module -- shouldn't we be trying to find the shortest such module? -- Stephen Turner, Cambridge, UKhttp://homepage.ntlworld.com/adelie/stephen/ This is Henman's 8th Wimbledon, and he's only lost 7 matches. BBC, 2/Jul/01

Re: Golf and the Perl Review

2002-02-06 Thread Jerome Quelin
On Mercredi 6 Février 2002 14:35, Eugene van der Pijll wrote : And I'm playing with your script right now. Looks good. Thanks. :) We probably need two programs: one for the arbiter, and one for the golfers. The routines that they have in common can be put into a module, but I'm not sure if

Re: Golf and the Perl Review

2002-02-05 Thread Bill -OSX- Jones
Count me in :) Should we hide??? If you want to actually *solve* the Perl Review 0-0 (pg 37) Golf Challenge, then see: http://www.cut-the-knot.com/recurrence/word_primes.html (The Challenge: Convert any base 36 number to base 10 equivalent; in as few strokes as possible.) OK, so

Re: Golf and the Perl Review

2002-02-05 Thread Bart Lateur
On Wed, 6 Feb 2002 00:05:12 -0500, Bill -OSX- Jones wrote: What does cabal really mean, in a Perl perspective? I know the dictionary/definition: ca·bal n. 1. A conspiratorial group of plotters or intriguers: “Espionage is quite precisely it—a cabal of powerful men, working secretly”

Re: Golf and the Perl Review

2002-02-05 Thread Uri Guttman
BL == Bart Lateur [EMAIL PROTECTED] writes: BL Gee. Secretly? I would have sworn it would have meant something like BL a noisy gang. At least, kabaal in (Flemish) Dutch means a lot of BL loud noise. (For those people from Holland: you would call it herrie.) BL BTW my Dutch dictionary

Re: Golf and the Perl Review

2002-02-05 Thread Brett W. McCoy
On Wed, 6 Feb 2002, Bart Lateur wrote: BTW my Dutch dictionary of foreign words says that the above word (not the noise) comes from Hebrew, indicating some sort of secret oral doctrine only intended for a chosen few. (rough translation by me). I have no clue where kabaal comes from, but it