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

Re: solutions

Thread Previous | Thread Next
Eugene van der Pijll
January 29, 2002 08:06
Re: solutions
Message ID:
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...


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