Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Regex question once-only use of chars in a charset

by CountZero (Bishop)
on May 15, 2011 at 13:19 UTC ( [id://904966] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    
    open my $WORDLIST, '<', './wordlist.txt' or die $!;
    ...
        my $sorted = join '', sort split '';
        say if $sorted =~ /^$available$/io;
    }
    
  2. or download this
    abe
    ace
    aced
    ...
    fad
    fade
    fed