Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Trivial HTML extractor utilityby hossman (Prior) |
on Nov 22, 2007 at 15:02 UTC ( [id://652381]=note: print w/replies, xml ) | Need Help?? |
If you used HTML::TreeBuilder::XPath it would be even more powerful. Instead of passing in a tag on the command line you could pass in an xpath expression. XPath would let you fetch attribute values, or only instances of tags that are children of certain other tags, or have particular attributes, etc.... If it wasn't for the "-b" option, your linkx script could just be an alias to htmlx with some args.
In Section
Meditations
|
|