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

Re: Sorted Code

Thread Previous | Thread Next
From:
Jeff 'japhy' Pinyan
Date:
December 13, 2001 18:29
Subject:
Re: Sorted Code
Message ID:
Pine.GSO.4.21.0112132121290.5362-100000@crusoe.crusoe.net
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{}

 !&'()*+-.0123456789<=>@ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz{}

Note the leading space.  I think that's as good as you'll get.

>What's the most useful piece of code you can write with this restriction?

Hah.

-- 
Jeff "japhy" Pinyan      japhy@pobox.com      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.



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