coder45 has asked for the wisdom of the Perl Monks concerning the following question:
I am on activeperl 5.8X, it generates the url1.txt file but it is empty#! Perl\bin\perl -w use WWW::Search; open FILE1, "> url1.txt" or die "$!"; my $oSearch = new WWW::Search('Yahoo::UK'); my $sQuery = WWW::Search::escape_query("world cup 2006"); $oSearch->native_query($sQuery); while ( my $oResult = $oSearch->next_result() ) { print "Adding: ", $oResult->url, "\n"; print FILE1 $oResult->url, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can someone elaborate as to why this isn't working
by tirwhan (Abbot) on Jan 01, 2006 at 12:47 UTC | |
|
Re: Can someone elaborate as to why this isn't working
by randyk (Parson) on Jan 01, 2006 at 17:14 UTC | |
by coder45 (Initiate) on Jan 02, 2006 at 06:12 UTC | |
by vek (Prior) on Jan 02, 2006 at 08:15 UTC | |
by coder45 (Initiate) on Jan 02, 2006 at 14:34 UTC | |
by randyk (Parson) on Jan 02, 2006 at 18:52 UTC | |
| |
|
Re: Can someone elaborate as to why this isn't working
by serf (Chaplain) on Jan 01, 2006 at 13:22 UTC | |
by vek (Prior) on Jan 02, 2006 at 08:28 UTC |