Re: Error puzzler

2006-09-15 Thread Peter Scott
the loop they could do it without an extra variable? -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/

Re: Function parameter passing (was: Re: limit the list)

2002-11-20 Thread Peter Scott
about associativity and order of evaluation. If you've been bitten by unexpected outcomes before you might have to try it to make sure it does what you think. I've used shift, shift before, so I already know. But it would be unfair to foist on a junior maintenance programmer, IMHO. -- Peter Scott

Re: puzzling greed

2002-06-14 Thread Peter Scott
At 04:03 PM 6/14/02 -0700, Yitzchak Scott-Thoennes wrote: In article [EMAIL PROTECTED], Peter Scott [EMAIL PROTECTED] wrote: ..+? Match at least one character that isn't a newline, I assume you meant '.+?'. Yes, that is in fact what I typed. Avoid putting periods at the beginning

Re: puzzling greed

2002-06-13 Thread Peter Scott
at least one character that isn't a newline, followed by as few of them as necessary for the rest of the match to succeed $ Match end of string or newline at end of string Clearer now? I would probably have written /([^-]+)$/ -- Peter Scott

RE: Re: Golf spectators

2002-03-18 Thread Peter Scott
time, is worth remembering... -- Peter Scott Pacific Systems Design Technologies

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: even.pl solutions

2002-01-28 Thread Peter Scott
... -- Peter Scott Pacific Systems Design Technologies

Re: RPN calculator

2002-01-21 Thread Peter Scott
be extended to arbitrary operators without losing any conciseness: #!/usr/bin/perl -l for(@ARGV){push@s,$_ and next if/\d/;/^p/print$s[-1]and next;eval\$s[-2]$_=pop\@s||die!} $ ./foo 5 9 + p 3 % 5 / p 9 '**' p 14 0.4 0.000262144 -- Peter Scott Pacific Systems Design Technologies http

Re: 'vacation'

2001-11-27 Thread Peter Scott
else had already done it. The main intended usage appears to be via a supplied script, but I'm using a script in .forward that has some simple code to call Mail::SpamAssassin. I can just delete anything with a high enough score from the spool so it never goes up to my MUA. Peter Scott [EMAIL

Re: isNumber( ) ??

2001-10-18 Thread Peter Scott
of the standard Perl distribution) provides the strtod and strtol for converting strings to double and longs, respectively. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com

Re: Doublet fun

2001-09-05 Thread Peter Scott
the beginning and end, each layer formed from the words that differ by one letter from the node above, and look to see when a word in one tree is found in the other. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com