Hi,

If the problem is to get dictionary translation, I think you should not work 
directkly with LWP or WWW::Mechanize.
Those modules provides convinient way to get the answer in HTML. This will 
force you to hack html files.

Altwernatively, you can use dictionaries that provides API like 
www.dictionary.com (and use the perl module WWW::Dictionary 
http://search.cpan.org/~cog/WWW-Dictionary-0.01/lib/WWW/Dictionary.pm) or even 
wikipedia (WWW::Wikipedia at 
http://search.cpan.org/~bricas/WWW-Wikipedia-1.92/lib/WWW/Wikipedia.pm).

You can manu more dictionaries in the cpan.

Yaron Kahanovitch


----- Original Message -----
From: "xavier mas" <[EMAIL PROTECTED]>
To: beginners@perl.org
Sent: 22:14:07 (GMT+0200) Africa/Harare יום שלישי 22 מאי 2007
Subject: Re: parsing html data

El Martes 22 Mayo 2007 22:00, David Moreno Garza escribió:
> xavier mas wrote:
> > dear all,
> >
> > I'm trying to make a consult to a online dictionary from an html
> > document, the result of the consult has to be output in a text field of
> > the same html document.
> >
> > I understand this can be done using (perl) cgi scripts but am not sure
> > which module do I need for that.
>
> A number of modules around LWP can help you with it. WWW::Mechanize,
> specifically, can help you with its specific method, content():
>
> $mech->content(format => 'text');
>
> --
> David Moreno Garza <[EMAIL PROTECTED]> | http://www.damog.net/
>  <URL:http://pub.tsn.dk/how-to-quote.php>

Muchas gracias, David.
-- 
Xavier Mas

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to