Front page | perl.fwp |
Postings from December 2001
Re: Sorted Code
Thread Previous
|
Thread Next
From:
Jeff 'japhy' Pinyan
Date:
December 14, 2001 12:18
Subject:
Re: Sorted Code
Message ID:
Pine.GSO.4.21.0112141517540.5362-100000@crusoe.crusoe.net
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 #.
--
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