in reply to WWW::Wikipeida getting translation

It produces "en" for me:
use warnings; use strict; 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"; } __END__ en

Maybe you can use Data::Dumper to see what $entry has for you:

use Data::Dumper; print Dumper($entry);

Replies are listed 'Best First'.
Re^2: WWW::Wikipeida getting translation
by welle (Beadle) on Feb 28, 2013 at 14:45 UTC

    Yes, good idea with Data::Dumper. It really seams there is only EN. But that is strange, as the Wikipedia entry has more connected languages (if I open it in a browser). Maybe it is a bag of the www::wikipedia module