develooper Front page | perl.fwp | Postings from March 2002

Re: TPR1 post-mortem

Thread Previous | Thread Next
From:
Stephen Turner
Date:
March 9, 2002 08:50
Subject:
Re: TPR1 post-mortem
Message ID:
Pine.LNX.3.96.1020309164635.19505C-100000@gentoo
On Fri, 8 Mar 2002, Stephen Turner wrote:
> 
> Methods for looping:
> 
> `$^X $0`                  (Stephen-54)
> 

By the way, to return to the conversation I was having with Andrew during
the competition, I think this choice of looping method was probably the
reason why I got away with using only 14 \w\s characters -- print$_=pop
is 9, plus 5 stragglers. It wasn't really an intentional choice of a low-\w
method though -- it just came out that way.

I thought of using /..(?{ ___$&___ })/ for pulling off all pairs of
characters because of the conversation on this list a week or so ago, when
this very method was discussed.

-- 
Stephen Turner, Cambridge, UK    http://homepage.ntlworld.com/adelie/stephen/
"This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About