in reply to Literati
You might also want to look at this thread: "Countdown" (golf).#!/usr/bin/perl -w use strict; my @letters = qw(S C R A B B L); open(DICT,"/usr/dict/words") or die $!; while (<DICT>) { my $orig = $_; chomp; for my $letter (@letters) {s/$letter//i;} print $orig unless length; } close DICT;
Unfair to use this to cheat with, obviously. Intellectual interest only.
hth,
andy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scrabble, anagrams Re: Literati
by artist (Parson) on Jan 14, 2002 at 22:12 UTC |