[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] pattern replacing



Folks,

I'm following the thread where the poster was looking to parse a line of
HTML. I have a similar problem. I'm wondering, what is a reasonable
technique for a not-quite-novice perl programmer to parse a line of HTML?
You can't split on a particular character. I read the embedded docs in the
HTML::Parser module and it looks too hairy for me to comprehend (method
calls, returned refs. and various OO items.) I've been fooling with a long
regex also, remembering pieces I want to extract in $1, $2, etc. In a
simpler exercise (only the first cell contents returned), I  read in a
block of HTML (table rows), cleaned the tags, and printed the results. I'm
open to ideas. Any suggestions? Feel free to respond off-line. I can
summarize for the list. Thanks.

Paul


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org