print "Enter a word to search for:"; chomp (my $word = ); if (not -e $word){ print "No such word found.\n"; exit; }