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

Re: even.pl solutions

Thread Previous | Thread Next
From:
Bart Lateur
Date:
January 29, 2002 01:24
Subject:
Re: even.pl solutions
Message ID:
6spc5ucdtq4m1krn5q0glmdqeovougpcnn@4ax.com
On Mon, 28 Jan 2002 23:14:00 -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

Yeah, me too. The huge amount of vertical bars is really delightful.

BTW BooK wrote:

>Well, bravo! I must admit I find it quite "interesting" to try to count an
>odd number of things while almost everybody else was looking for even
>counts!

Maybe it's just a matter of interpretation, but this above example tries
to see if *any* of the results are odd, in which case the total test
will fail, and nothing will be printed.

-- 
	Bart.

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