Problems? Is your data what you think it is? | |
PerlMonks |
Exit while loop on first matchby ybiC (Prior) |
on Apr 30, 2002 at 15:49 UTC ( [id://163096]=perlquestion: print w/replies, xml ) | Need Help?? |
ybiC has asked for the wisdom of the Perl Monks concerning the following question:
The following chunklet parses markup for bolded numbers, and kicks out of the while loop on the first match. Works fine, lasts 'long time. But the ++$match seems a bit, uhm, mechanical, maybe? Might there be smoother ways to facilitate kicking out on the first match?
cheers, Don striving toward Perl Adept (it's pronounced "why-bick")
ps - kudos to da loony sleepfree one for his HTML::TokeParser tutorial
Back to
Seekers of Perl Wisdom
|
|