[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [FWP] inscrutable code formatting (was 100 point words)



> From: Rich Morin [mailto:rdm@cfcl.com]
> Sent: Friday, July 23, 1999 17:44
> To: fwp@technofile.org
> Subject: [FWP] inscrutable code formatting (was 100 point words)
> 
> At 2:57 PM -0700 7/23/99, lr@hpl.hp.com wrote:
> >    perl -ne'$t=0;$t+=ord(uc)-64 for split//;$t-46||print'
> >
> >Do we have a winner yet?
> 
> No, but we have a loser (me), in that I have to get my eyeballs
> back in place after trying to unscrew this inscrutable[1] bit of
> code.  I'm not trying to be a party-pooper; I realize that this
> was part of a series of "how ters [sic] can I make this?" code
> submissions.  Nonetheless, _I_ would appreciate it if authors
> would include expanded versions of this genre of code, as:
> 
>    perl -ne'$t=0;$t+=ord(uc)-64 for split//;$t-46||print'
> 
>    perl -ne '
>      $t =  0;
>      $t += ord(uc) - 64 for split //;
>      $t -  46 || print
>    '
> 
> Tight code is more interesting than missing whitespace (IMHO :).

What's the 'fun' in that?  This is FWP, after all!

> [1]  "The Sexual Urge of the Camel" is attributed to A.P. Herbert,
>       but a number of alternative versions (found in a Metacrawler
>       search) indicate that there's clearly MTOW _not_ TDI...

Ah, but there was a lot of fun in *that*!

-- 
Larry Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com 

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe