in reply to Check if a word is included in another
sub wordCheck{ my $s = join '', sort split'', $_[0]; my $re = join'.*', sort split'', $_[1]; return $s =~ $re; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Check if a word is included in another
by b4swine (Pilgrim) on Apr 18, 2010 at 22:23 UTC | |
by BrowserUk (Patriarch) on Apr 18, 2010 at 22:49 UTC | |
by b4swine (Pilgrim) on Apr 18, 2010 at 23:11 UTC |