welle has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying of getting the tranlation in a given language of the "title" of a Wikipedia's entry. I'am using wwww::Wikipedia. I need first to know in which languages an entry is available. To do this I do:
#!/usr/bin/perl -w use WWW::Wikipedia; use Encode; my $wiki = WWW::Wikipedia->new(); my $entry = $wiki->search( 'Rotation' ); my @languages_available = $entry->languages(); foreach (@languages_available) { print "$_\n"; }
Unfortunately this doesn't produce any results. What I am doing wrong?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: WWW::Wikipeida getting translation
by toolic (Bishop) on Feb 28, 2013 at 13:21 UTC | |
by welle (Beadle) on Feb 28, 2013 at 14:45 UTC | |
by toolic (Bishop) on Feb 28, 2013 at 14:48 UTC | |
Re: WWW::Wikipeida getting translation
by Not_a_Number (Prior) on Feb 28, 2013 at 18:51 UTC | |
by toolic (Bishop) on Feb 28, 2013 at 19:16 UTC | |
Re: WWW::Wikipeida getting translation
by LTjake (Prior) on Mar 01, 2013 at 14:12 UTC | |
by welle (Beadle) on Mar 04, 2013 at 18:59 UTC | |
by LTjake (Prior) on Mar 10, 2013 at 03:20 UTC | |
by welle (Beadle) on Mar 14, 2013 at 12:16 UTC |
Back to
Seekers of Perl Wisdom