"dict" -- cool little snippet I saw on a GNOME list.

Erik Price erikprice at mac.com
Wed Aug 28 22:59:49 EDT 2002


On Wednesday, August 28, 2002, at 05:36  PM, Ken Ambrose wrote:

> Too darn lazy to fire up the browser?
>
> Then enjoy the below script, for all you command-line guys (and 
> gal(s))...

Nice script.  If you like writing shell scripts to do little jobs like 
this (and there's plenty of ways to leverage this kind of power), you 
might be interested in Perl's LWP module.  [As opposed to c/sh,] Perl 
lets you easily parse the result, too, if you know what to look for.  
(There's a module called HTML::TokeParser if I'm not mistaken that 
makes it easy to parse HTML, better than regexes, but I haven't used it 
yet.)

There is a great intro on oreillynet.com (it is really a plug for the 
new LWP book, but the intro is pretty informative):
http://www.perl.com/pub/a/2002/08/20/perlandlwp.html?page=1



Erik





Erik





--
Erik Price

email: erikprice at mac.com
jabber: erikprice at jabber.org




More information about the gnhlug-discuss mailing list