You should investigate some of the CPAN modules for manipulating HTML such as HTML::TreeBuilder or HTML::Parser to make parsing your file much easier.
If you are working with web pages then LWP and WWW::Mechanize are your friends.
Note that in scalar context an array returns its number of elements so you can simply write my $count = @sentences;.
In reply to Re: Searching through a document and reporting results.
by GrandFather
in thread Searching through a document and reporting results.
by Tails
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |