Help for this page

Select Code to Download


  1. or download this
    sorted([w.strip() for w in open('/usr/share/dict/words', 'r').readline
    +s()
    if set(list('abcdef')).issubset(set(list(w.strip())))], key=lambda x: 
    +len(x))
    
  2. or download this
    open$:,"</usr/share/dict/words";while(<$:>){next unless/(?=.*a)(?=.*b)
    +(?=.*c)(?=.*d)(?=.*e)(?=.*f)/i;push@_,$_}@_=sort{length$a<=>length$b}
    +@_'
    
  3. or download this
    open$:,"</usr/share/dict/words";while(<$:>){next unless/(?=.*a)(?=.*b)
    +(?=.*c)(?=.*d)(?=.*e)(?=.*f)/i;push@_,$_}print for sort{length$a<=>le
    +ngth$b}@_
    
  4. or download this
    open$:,"</usr/share/dict/words";while(<$:>){next unless/(?=.*a)(?=.*b)
    +(?=.*c)(?=.*d)(?=.*e)(?=.*f)/i;push@_,$_}for(sort{length$a<=>length$b
    +}@_){print;last}
    
  5. or download this
    #!/usr/bin/perl -lw
    use strict;
    ...
    PERL: 144
    JUNK: 152