summaryrefslogtreecommitdiff
path: root/dot/local/bin/google
blob: 25604fb3d5fad5c54b8c2236363bec0d626983d8 (plain)
1
2
3
4
5
#!/usr/bin/perl -w

$_ = join ' ', map { m/ / ? qq<"$_"> : $_ } @ARGV;
s/([^a-zA-Z0-9])/sprintf "%%%x", ord $1/ge;
exec qw(w3m), "http://www.google.com/search?q=$_"