Subject: | why I got "Unsupported protocal 'HTTP' |
Date: | Thu, 12 Jun 2014 13:22:18 +0000 |
To: | "bug-BingTranslationApi [...] rt.cpan.org" <bug-BingTranslationApi [...] rt.cpan.org> |
From: | Rong Hu <Rong.Hu [...] mathworks.com> |
Hi,
I'm using Lingua::Translate: :Bing to make a machine translation demo, but got this error. No clue what happened.
The code is :
use Lingua::Translate::Bing;
my $translator = Lingua::Translate::Bing->new(client_id => "....", client_secret => "...");
my $lang=$translator->detect("hello");
print $translator->translate("hello", "ru");
Thank you very much for help,
Rong