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.