Help for this page

Select Code to Download


  1. or download this
    open$:,"</usr/share/dict/words";while(<$:>){...}
    @ARGV="/usr/share/dict/words";while(<>){...}
    
  2. or download this
    $a='a';$a++while/$a/;push@_,$_ if$a gt'f'
    next unless/(?=.*a)(?=.*b)(?=.*c)(?=.*d)(?=.*e)(?=.*f)/i;push@_,$_
    
  3. or download this
    @ARGV="/usr/share/dict/words";while(<>){$a='a';$a++while/$a/i;push@{$_
    +[length]},$_ if$a gt'f'}@_=map{$_?@$_:()}@_
    open$:,"</usr/share/dict/words";while(<$:>){next unless/(?=.*a)(?=.*b)
    +(?=.*c)(?=.*d)(?=.*e)(?=.*f)/i;push@_,$_}@_=sort{length$a<=>length$b}
    +@_