develooper Front page | perl.fwp | Postings from December 2001

Re: The Santa Claus Golf Apocalypse

Thread Previous | Thread Next
From:
Piers Cawley
Date:
December 6, 2001 15:16
Subject:
Re: The Santa Claus Golf Apocalypse
Message ID:
m28zcg54tb.fsf@bofh.org.uk
Karsten Sperling <s_sperli@ira.uka.de> writes:

>>> *** Eugene van der Pijll: 89 (11 19 13 25 21) ***
>>> --- rev.pl  ---------------------------------------------
>>> #!/usr/bin/perl -p
>>> $\=$_.$\}{
>
>> That's just *beautiful*. I just couldn't see past 'print reverse<>'.
> I've been wondering for hours now how he keeps $_ from being
> destroyed by the last iteration. Of course, he just doesn't.
> Congratulations Eugene!

Yeah, it's a fantastic sidestep isn't it? I'm kicking myself for not
spotting it. It's one of those really obvious things once you see it.

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

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