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

Re: even.pl solutions

Thread Previous | Thread Next
From:
Eugene van der Pijll
Date:
January 29, 2002 08:06
Subject:
Re: even.pl solutions
Message ID:
20020129160632.GA22878@ruunat.phys.uu.nl
Stephen Turner schreef op 29 januari 2002:
> Five programs didn't use $. , of which the shortest is this one from Ton
> Hospel in equal third place:
> 
> -ln ($a=aeiouy)=~s!!--&~y-!g;eval"\$|$a--c&&print"          50 ton
> 
> It's another meta-program. The line counting is done by $|-- , although even
> that isn't obvious until you've worked out what $a is above.

There is more going on than that. Why does Ton use the variable $| ? Any
other variable doesn't work...


Eugene

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