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

Re: solutions

Thread Previous | Thread Next
Matthew Byng-Maddick
January 29, 2002 01:21
Re: solutions
Message ID:
On Mon, Jan 28, 2002 at 11:14:00PM -0500, Keith C. Ivey wrote:
> But I was glad to see in the results several versions (by me 
> and others) of the lovely
>   -ln 1&($.|y|o|||y|e|||y|u|||y|a|||y|i|||y|y|||y|||c)||print

Indeed, I thought that was very beautiful when I discovered it.

Although all my solutions were based on using eval and substitutions to
recreate a string looking much like that.

It just didn't occur to me to use the $_ x=... trick, by which I'm still


Matthew Byng-Maddick         <> 

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About