Front page | perl.fwp |
Postings from March 2002
Re: TPR1 post-mortem
Thread Previous
|
Thread Next
From:
F . Xavier Noria
Date:
March 8, 2002 06:38
Subject:
Re: TPR1 post-mortem
Message ID:
20020308143742.86E09CD2BB@smtp.bcn.isoco.net
On Fri, 8 Mar 2002 15:16:10 +0100
"Marcelo E. Magallon" <marcelo.magallon@bigfoot.com> wrote:
: As you can see it's just a series of 1 .. 9, except for 0. With that
: in mind my first I tried something like (0,(1..9)x11)[$n]. Actually,
: before that I tried something more like (0,(1..9)x2)[$a+$b]
I liked this shorcut here (that was in my last but one submission I
think):
($a..9,1..9)[$b]
$b was $` in my approach, I did not find a shorter way to extract the
first digit from $` than $`&'?' there, at least $` was of type string.
and didn't need double quotes.
-- fxn
Thread Previous
|
Thread Next