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

Re: Sorted Code

Thread Previous
Ilmari Karonen
December 15, 2001 09:35
Re: Sorted Code
Message ID:

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, 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 -
"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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About