Monks,
I'm attempting to use Lingua::EN::Keywords::Yahoo, but I don't get a response back.
I can call the yahoo service directly, so I think it could be a proxy issue. Unfortunatly there is no error or warning message to put me on the right track.
Would any kind Monk be able to instruct this Novice on how to set a proxy in this module? My non-working code is below
#!/usr/bin/perl
use Lingua::EN::Keywords::Yahoo qw(keywords);
use Data::Dumper;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new(agent => "test");
$ua->proxy('http', 'http://myproxy.com:80');
my @keywords = keywords(" Two Scottish towns have seen the highest inc
+rease in house prices in the UK this year, according to new figures.
+Alexandria in West Dunbartonshire and Coatbridge in North Lanarkshire
+ both saw an average 35% rise in 2005" );
print Dumper @keywords;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.