Lingua::Pangram

Marty Pauley perl.belfast at kasei.com
Wed Jan 23 09:40:04 CST 2002


On Wed Jan 23 15:16:46 2002, Tony Bowden wrote:
> On Wed, Jan 23, 2002 at 02:50:31PM +0000, Tony Bowden wrote:
> MP: perl -wnle 'sub p{for("a".."z"){return()unless$_[0]=~/$_/i}1}p($_)&&print'
> SR: perl -wnle 'sub p{for("a".."z"){return()unless$_[0]=~/$_/i}print}p($_)'
> TB: perl -wnle 'sub p{for("a".."z"){$_[0]=~/$_/i||return}print}p($_)' 
> TB: perl -ne'sub p{grep$_[0]=~/$_/i,a..z}p($_)==26&&print'
> TB: perl -ne'sub p{for$i(a..z){/$i/i||return}print}p'

No shorter, but weirder:
  MP: perl -ne'sub p{/$l/i&&p(++$l)+1}$l=a;p>25&&print'

-- 
Marty
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 220 bytes
Desc: not available
Url : http://mail.pm.org/archives/belfast-pm/attachments/20020123/15daf9a6/attachment.bin


More information about the Belfast-pm mailing list