#!/usr/local/bin/perl
# $Id: spellcheck.perl,v 1.4 2001/01/23 01:30:42 doug Exp $
# http://www.bagley.org/~doug/shootout/
use strict;
# read dictionary
my %dict = ();
open(DICT, "<Usr.Dict.Words") or
die "Error, unable to open Usr.Dict.Words\n";
while (<DICT>) {
chomp;
$dict{$_} = 1;
}
close(DICT);
while (<STDIN>) {
chomp;
print "$_\n" if (!$dict{$_});
}