Lingua::Pangram

Tony Bowden tony at kasei.com
Mon Jan 28 05:24:34 CST 2002


On Mon, Jan 28, 2002 at 11:01:24AM +0000, Jasper McCrea wrote:
> > perl -pe'for$i(a..z){$_=""if!/$i/i}'
> err.. I've been on holiday, but why not save 3 characters with:
> perl -pe'for$i(a..z){/$i/i||die}'

Cos then it won't print any more lines after the first one that doesn't
match?

Tony




More information about the Belfast-pm mailing list