in reply to parsing HTML
tr returns the number of translations it has done - so you can use code like:
$count = $text =~ tr/"/"/;to get the number of double quotes in $text.
I can't help wondering, however, why you're trying to reinvent HTML::Parser. What does that module not do that you need?
--Perl Training in the UK <http://www.iterative-software.com>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: parsing HTML
by eod (Acolyte) on Sep 14, 2001 at 15:30 UTC | |
|
Re: Re: parsing HTML
by Rhandom (Curate) on Sep 14, 2001 at 20:00 UTC |