how would you write a spell checker?

2005-03-19 Thread mark McWilliams
Hello I need to write a spell checker. I have tride to check the words in the file to be checked against the words in the dictionary but I havve not been able to make progress. If I use an unless($word =~ /^$single_word$/i) { print $single_word; do other stuff ...} # above prints every

How do I open 2 files at once 1 to be checked against the other

2005-03-02 Thread mark McWilliams
Please help I need to make a spell check program that will open a dictionary that the user enters the name of and then a file that will be checked against the dictionary file. so at prompt % spellcheck.pl Dictionary_file Check_this_file the program will open the Dictionary_File and then

Use of uninitialized value in pattern match ..., chunk 2

2005-02-23 Thread mark McWilliams
What is the following telling me , especially the chunk 2? Use of uninitialized value in pattern match (m//) at ./lo line 27, chunk 2 I used if (defined ... to get rid of a few other errors. this is in reference to the following code edited to reduce size while (defined($in = )) { if (

Use of uninitialized value in pattern match (m//)

2005-02-13 Thread mark McWilliams
I do not know how to get rid of this error Use of uninitialized value in pattern match (m//) This is were the error is if ( defined $modem{$Ascend_Xmit_Rate} =~ /\d/) { print __\t modem{Ascend_X_Rate}_\t __\n;

Getting perl to work on windows 98 se

2004-11-06 Thread mark McWilliams
I an having trouble installing perl5 or activeperl on my machine and would like any advice anyone can give. What in particular should I look for after it is suppositively installed. Where should I look? There is a bin folder created when I tried to load perl but it does not have any subfolders