$ perl -le' my $target = "PEARLYGATES"; my $word = "EASYPEASY"; ( my $temp = $target ) =~ s/[^$word]//g; print join( "", sort split //, $temp ) eq join( "", sort split //, $wo +rd ) ? "Match" : "No match"; ' No match
In reply to Re: Check if a word is included in another
by jwkrahn
in thread Check if a word is included in another
by b4swine
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |