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?
Back to
Seekers of Perl Wisdom