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

Re: Sorted Code

Thread Previous
From:
Ilmari Karonen
Date:
December 15, 2001 09:35
Subject:
Re: Sorted Code
Message ID:
Pine.SOL.3.96.1011215191219.3231A-100000@simpukka

On Fri, 14 Dec 2001, Jeff 'japhy' Pinyan wrote:
> On Dec 14, Ilmari Karonen said:
> >On Thu, 13 Dec 2001, Jeff 'japhy' Pinyan wrote:
> >> On Dec 14, Alistair.McGlinchy@marks-and-spencer.com said:
> >> 
> >> >what is the longest piece of perl code $c which is "perl -c" correct with
> >> >the requirement that each character in $c is ord-less than the next one.  ie
> >> 
> >>  !&'()*+-.0123456789<=>@ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz{}
> >> 
> >> Note the leading space.  I think that's as good as you'll get.
> >
> >I think I can do better, quite easily:
> >
> > #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
> 
> We were explicitly asked to ignore #.

Oops, so I see.  That's what I get for not reading the original spec
carefully enough.  \cD seems to be out too.  (Although it was fun to
find out a new trick, so I guess the effort wasn't all wasted.)

It seems you're still in the lead so far.

-- 
Ilmari Karonen - http://www.sci.fi/~iltzu/
"Signal handlers are known to be broken in perl.  Did you expect them to
 somehow get unbroken when ITHREADS is enabled?"
                           -- Gurusamy Sarathy on the perl5-porters list



Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About