Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: search - a quick and dirty hack to search google fast using a text browser

by echo (Pilgrim)
on Sep 27, 2001 at 12:08 UTC ( #115022=note: print w/replies, xml ) Need Help??


in reply to search - a quick and dirty hack to search google fast using a text browser

When building the query string it is not sufficient to join the arguments with '+'. An argument might contain an embedded space, or other characters not legal in a URI. The URI needs to be encoded according to RFC 2396. For this purpose you can use the URI::Escape module:

use URI::Escape; $string = uri_escape(join(' ', @ARGV));
  • Comment on Re: search - a quick and dirty hack to search google fast using a text browser
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://115022]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2019-04-24 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (121 votes). Check out past polls.

    Notices?