print str_replace('<font size=-2> </font>', ',' , preg_replace('{.+.+= (.+?).+}s', '$1', file_get_contents('http://www.google.com/search?q=' . urlencode(join(' ', array_splice($argv, 1)))))) . "\n";
To answer AdamJacobMuller, I use str_replace() instead of strip_tags() to insert pretty commas as thousands separators. Totally unnecessary, I know, but I think it makes the output more readable.
Resource Management: A Critical Look at RAII Michael Feathers
The Logs That Bind.. Michael Feathers
Outside the Design Boundary Michael Feathers
Can a program lie to you the way a story or essay can? Andy Oram
> More from Beautiful Code