--- Ovid <[EMAIL PROTECTED]> wrote:

> First, I would suggest that you're trying to count two different
> things,  tags and attributes.  You may wish to separate them.  The
> following code  will do what you want.  It uses the
> HTML::TokeParser::Simple module to make this relatively easy to read.

I should have also mentioned that I duplicated some code in there to
make it a relatively straight-forward read.  You'll probably want to
abstract the duplicate bits out into subroutines.

Cheers,
Ovid

-- 
If this message is a response to a question on a mailing list, please send
follow up questions to the list.

Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to