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

Re: even.pl solutions

Thread Previous | Thread Next
From:
Stephen Turner
Date:
January 28, 2002 16:07
Subject:
Re: even.pl solutions
Message ID:
Pine.LNX.3.96.1020129000229.10105A-100000@gentoo
-n $==$.&1;$=^=7
...y*yuoeia***ord
for/./g;$=||print                                           50 ivey


This one looks interesting, but I can't make it work. Is there a typo?

I guess if nothing else, I win the prize for the greatest number of lines in
a submitted solution :-)


-p ($.+1)*y/a
//*y/e
//*y/i
//*y/o
//*y/u
//*y/y
//*y///c%2or$_=''
                                                            66 turn


-- 
Stephen Turner, Cambridge, UK    http://homepage.ntlworld.com/adelie/stephen/
"This is Henman's 8th Wimbledon, and he's only lost 7 matches." BBC, 2/Jul/01



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