I would like to get:camel perl book
camel perl book camel perl perl book camel perl book
This is intented to create a query for a payperview search engine, where the records which search expression is complete in the query will be shown.sub list { my $words=shift; chomp $words; my @words=split /\s/, $words; my @longs=(); for my $i (1..$#words-1) { push @longs, map { join " ", @words[$_..$_+$i]} (0..$#words-$i); } push @words, @longs,$words; return @words; }
In reply to Subphrases from a phrase by themage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |