metalfan has asked for the wisdom of the Perl Monks concerning the following question:

dear monks,

why is this modul so slow? it uses my inet connection for a short period of time and then seems todo nothing before i see the translation?

i would like to use leo to update my vocabulary file, its in csv format converted from excel.

"english word", "german word"

this is just a crude workaround, it probably would be much better to dig deeper in the modul code.
anyway, this code snippet doesnt seem to end...?

for my $entry ("high","low","input","output") { system("./leo $entry >>leo.output 2>&1") }


any ideas how to modify the leo code directly to output everything leo displays into the "german word" field?

greets metalfan

Edited by planetscape - added code tags

Replies are listed 'Best First'.
Re: why is WWW-LEO-1.33 so slow?
by aquarium (Curate) on Dec 25, 2005 at 16:07 UTC
    if you want to use the module, then why are you calling an executable "leo" with sytem call?
    the hardest line to type correctly is: stty erase ^H
      good point, the "executable" is a perl script i found in the WWW-LEO package