Here’s a little script I wrote to look up words whilst reading a book or browsing the web. It uses the Aonaware web-service to get the definitions and prints them out to the console. And if you misspell a word it will offer some suggestions.
You will need to install the LWP::Simple and XML::XPath modules from CPAN to get it to work, but other than that it should be clean sailing.
If you have comments, bugs to moan about or feature requests then let me know
Very cool! I will definitely use this.
[...] This post was mentioned on Twitter by perlbuzz, Eddy Seager. Eddy Seager said: Command Line Dictionary in 50 Lines of Perl « grepmonster http://bit.ly/dfeHsT [...]
Hi!
Thanks for the script. However, I have two comments.
First of all, you should put the script in on a more permanent location than a pastebin.
Secondly, don’t use XML::XPath – it’s old, slow, broken and incomplete – you should use XML::LibXML and its XPath support instead.
Hi,
Thanks for your comments! The script is now available on CPAN at http://www.cpan.org/authors/id/T/TA/TARSKI/dict.1.1.pl.