Lingua::Pangram

Jasper McCrea jasper at guideguide.com
Mon Jan 28 05:01:24 CST 2002


Wesley Darlington wrote:
> 
> On Wed, Jan 23, 2002 at 03:56:53PM +0000, Andrew Wilson wrote:
> > On Wed, Jan 23, 2002 at 03:43:49PM +0000, Wesley Darlington wrote:
> > > perl -pe'for$i(a..z){/$i/ or$_=""}'
> >
> > that doesn't match stuff with upper case letters.  But damn impressive
> > none the less.
> 
> Oops.
> 
> > perl -pe'for$i(a..z){/$i/i or$_=""}'
> 
> Also (same length),
> 
> perl -pe'for$i(a..z){$_=""if!/$i/i}'
> 
> Wesley.

err.. I've been on holiday, but why not save 3 characters with:

perl -pe'for$i(a..z){/$i/i||die}'

Jasper
-- 
It's like you're dreamin' about Gorgonzola cheese when it's clearly
Brie time, baby



More information about the Belfast-pm mailing list