Lingua::Pangram
Andrew Wilson
andrew at soto.kasei.com
Mon Jan 28 05:19:31 CST 2002
On Mon, Jan 28, 2002 at 11:01:24AM +0000, Jasper McCrea wrote:
> Wesley Darlington wrote:
> > 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}'
Perhaps because it does the wrong thing?[0]. Your version bums out the
first time it fails, it should ignore the phrase and move silently onto
the next one.
cheers
Andrew
[0] Are you sure you haven't been talking to Marc? ;-)
More information about the Belfast-pm
mailing list