Index: /FCKeditor/branches/developers/mjk/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl
===================================================================
--- /FCKeditor/branches/developers/mjk/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl	(revision 194)
+++ /FCKeditor/branches/developers/mjk/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl	(revision 195)
@@ -1,4 +1,5 @@
 #!/usr/bin/perl
 
+use strict;
 use CGI qw/ :standard /;
 use File::Temp qw/ tempfile tempdir /;
@@ -8,7 +9,6 @@
 # my $wordWindowSrc = '/speller/wordWindow.js';					# by FredCK
 my $wordWindowSrc = '../wordWindow.js';							# by FredCK
-my @textinputs = param( 'textinputs[]' ); # array
-# my $aspell_cmd = 'aspell';									# by FredCK (for Linux)
-my $aspell_cmd = '"C:\Program Files\Aspell\bin\aspell.exe"';	# by FredCK (for Windows)
+ my $aspell_cmd = 'aspell';									# by FredCK (for Linux)
+#my $aspell_cmd = '"C:\Program Files\Aspell\bin\aspell.exe"';	# by FredCK (for Windows)
 my $lang = 'en_US';
 # my $aspell_opts = "-a --lang=$lang --encoding=utf-8";			# by FredCK
@@ -18,4 +18,5 @@
 # set the 'wordtext' JavaScript variable to the submitted text.
 sub printTextVar {
+	my @textinputs = param( 'textinputs[]' ); # array	
 	for( my $i = 0; $i <= $#textinputs; $i++ ) {
 	        print "textinputs[$i] = decodeURIComponent('" . escapeQuote( $textinputs[$i] ) . "')\n";
@@ -50,4 +51,7 @@
 	my $wordIdx = 0;
 	my $unhandledText;
+	my $text;
+	my @lines;
+	my @textinputs = param( 'textinputs[]' ); # array	
 	# create temp file
 	my $dir = tempdir( CLEANUP => 1 );
