Wednesday, August 31, 2005

Herndon Restaurants and Reviews

Herndon Restaurants and Reviews

In the Herdon area? Hungry? The above link seems like a pretty complete list of resturants in the area.

We still couldn't decide on one, so I grabbed the text of the file, stripped out the HTML, and ran it through the following command:

cat rest.txt | 
  perl -e 'srand; rand($.) < 1 && ($line = $_) while <>; print $line'

Just ran that command, and it suggested: Lone Star Steakhouse. Hmmm, maybe I need to improve the script.

Thanks to the Perl Cookbook for the above perl code.

No comments:

Post a Comment