I am trying to integrate a spell checker into my website, and the
Lingua::Ispell CPAN module looks like it will do what I need. I can
successfully test the module offline, in a perl script, but when I use
the same code in an Embperl page it fails. I see from the module
documentation that it calls Open2::open2 in order to call the ispell
application. I also notice that there is a buildup of defunct aspell
processes when I try to use this module in Embperl.

I am just doing a basic test of the module at this point, nothing
special. The code is as follows:

        use Lingua::Ispell;
        $Lingua::Ispell::path = "/usr/bin/ispell";
        Lingua::Ispell::spellcheck ("hello neil") or print OUT "oops";

And when I run this code, each time I get another zombie process:
(output from ps -aux)

nobody    2296  0.0  0.0  0  0 ?   Z    11:50   0:00 [aspell <defunct>]
nobody    2351  1.8  0.0  0  0 ?   Z    12:32   0:00 [aspell <defunct>]

I thought that perhaps there was some problem with starting the process
as user nobody, but I have tried running the same code in a simple perl
script on the command line as nobody, and it does work. So what is
different about doing this from within Embperl?

Any ideas?

TIA

-Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to