Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
7
Task/Textonyms/Perl/textonyms.pl
Normal file
7
Task/Textonyms/Perl/textonyms.pl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
sub find {
|
||||
my @m = qw/$ $ abc def ghi jkl mno pqrs tvu wxyz/;
|
||||
(my $r = shift) =~ s{(\d)}{[$m[$1]]}g;
|
||||
grep /^$r$/i, split ' ', `cat words.txt`; # cats don't run on windows
|
||||
}
|
||||
|
||||
print join("\n", $_, find($_)), "\n\n" for @ARGV
|
||||
Loading…
Add table
Add a link
Reference in a new issue