Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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
Domain Nodelet?
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 studying the Monastery: (3)
As of 2022-01-21 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (57 votes). Check out past polls.

    Notices?