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

Re: [FWP] Kill 'em all and let God sort it out



On Thu, Mar 15, 2001 at 03:54:36PM +0000, Michael G Schwern wrote:
> On Thu, Mar 15, 2001 at 09:34:47AM -0600, Elaine -HFB- Ashton wrote:
> > *>> # Bonus points if you can figure out this one.
> > *>> print grep { ref and ref !~ /^[A-Z]$/ } kill 9, @ARGV;
> > 
> > Well..though it doesn't fit the code as well the quote is commonly
> > 
> > "Kill them all. God shall know his own."
> > 
> > uttered by papal official during one of the Albigensian crusades when
> > asked how to distinguish between Catholics and the Cathars. 
> 
> You got it.  The grep checks for that which is an object (nearly, but
> I wouldn't want to question the infalibility of the Church.  So a few
> true believers accidentally go to Hell.  C'est le guierre.  It misses
> objects of the UNIVERSAL class, but then again... Universalists aren't
> of the True Faith anyway.)  Objects are blessed.  Blessed are the
> children of God.  The children of God are His own.


I don't get it. How does "ref and ref !~ /^[A-Z]$/" in any way distinguish
between objects and non-objects? There are only 52 strings matching /^[A-Z]$/.



Abigail

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