develooper Front page | perl.perl6.language | Postings from September 2002

Re: Paren madness (was Re: Regex query)

From:
Trey Harris
Date:
September 23, 2002 19:55
Subject:
Re: Paren madness (was Re: Regex query)
Message ID:
Pine.BSF.4.44.0209232253130.35599-100000@bowser.eecs.harvard.edu
In a message dated Mon, 23 Sep 2002, Luke Palmer writes:
> Y'all have it backwards.
>
> 	[1,*[2,[3,4,5]],6]		# [1,2,[3,4,5],6]
> 	[1,*[2,*[3,4,5]],6]		# [1,2,3,4,5,6]
>
> Flat flattens outwards, not inwards.

Ah.  *slaps head* of course.  That makes much more sense.  Thanks.

So then, I think if there's just some clarification about how one-tuples
are formed, I think everything I wrote in my earlier mail can DWIM
correctly.  There seems to be no magic here, quotations from LoTR to the
contrary. :-)

Trey




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