|
|
| "be consistent" | |
| PerlMonks |
(jcwren) Re: Text::Balanced woes..by jcwren (Prior) |
| on May 27, 2002 at 02:01 UTC ( #169457=note: print w/ replies, xml ) | Need Help?? |
|
It appears that Text::Balanced does not cope with leading non-white space characters that are not balanced tag pairs. The example below works as advertised. However, put ANY leading character or word in front of the opening <B>, and it ceases working. This doesn't seem terribly useful, unless you know you're parsing complete HTML. Note that in a list context, a valid parsing returns 6 items. See the docs for which element is which.
--Chris
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||