in reply to Re: Re: Text::Balanced woes..
in thread Text::Balanced woes..

Having looked at the HTML:: modules, i really do think this Text::Balanced is exactly what i want/need it to do...

I realize that your code is only a snippet, but it does look like it is possible to concoct valid HTML hyperlinks that don't get caught by it:

Whether these matter depends on your application and your users. But if they do you probably are better using a module explitly for parsing HTML rather than trying to think of all the possible valid variations.

Smylers

Replies are listed 'Best First'.
Re: Re: Text::Balanced woes..
by u914 (Pilgrim) on Jun 12, 2002 at 05:45 UTC
    Actually, the html pages that it works on are generated by another script, so they're pretty consistent.

    i like the loop simplification, though... i often forget about foreach, and the C-ishness is a fiendish habit to break!

    Thanks for the tip!

    :-)