in reply to Re^6: Anagrams & Letter Banks
in thread Anagrams & Letter Banks
If grep outputs the words themselves, why is the "next unless" part working?for (sort keys %words) { my @list = sort @{$words{$_}}; next unless @list > 1; next unless grep !/(.).*\1/, @list; print "@list\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Anagrams & Letter Banks
by Cristoforo (Curate) on Oct 27, 2017 at 22:23 UTC |