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

Re: Santa Hole 5 (wc.pl) Post Mortem

Thread Previous | Thread Next
From:
Piers Cawley
Date:
December 6, 2001 15:59
Subject:
Re: Santa Hole 5 (wc.pl) Post Mortem
Message ID:
m2zo4v52ua.fsf@bofh.org.uk
Michael G Schwern <schwern@pobox.com> writes:

> On Fri, Dec 07, 2001 at 10:36:50AM +1100, Andrew.Savige@ir.com wrote:
>> --- Piers Cawley --------------------- 21
>> #!/usr/bin/perl -lp
>> $#='%010g'}{$_=$.
>
> Shouldn't that be 20?

Nope. The space before the '-' counts.

But I was pretty proud of this one. And surprised that nobody else
found it. Course, I'm still annoyed that I found this but not the $\
based reverse.

-- 
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