Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    
    ...
    
    print "easy\n" if 'simple' =~ /simple/;
    print "hard\n" if 'simple' =~ /^.[i-k]\lM(?:pla|plo|pl)(?:oink)?e$/;
    
  2. or download this
    perl -le '(q(x) x 100) =~ /^x(((((x{2,5})x{2,5})x{2,4})x?)x?(?{$hit++}
    +))$/; print $hit'