We don't bite newbies here... much | |
PerlMonks |
HTML::Parser guidanceby 4perl (Initiate) |
on May 28, 2013 at 12:55 UTC ( [id://1035586]=perlquestion: print w/replies, xml ) | Need Help?? |
4perl has asked for the wisdom of the Perl Monks concerning the following question: Hi everyone I am having a bit of trouble understanding the methods in HTML::Parser. My task is basically to parse lines in html files and every line is of structure. Consider the: "{div class="message1"} {span class="date"} yyyy-mm-dd hh:mm:ss {/span} {span class="id"} id1 {/span} {span class="resource"} text1 {/span} - > {span class="id"} id2 {/span} {span class="resource"} text2 {/span} {span class="messagetext"} texttext {/span} {/div}" What I want to obtain is a file with lines having only the data, with \t between every chunk of text si I can play with it further. Any help is kindly appreciated. Curly brackets used to keep structure visible. Thank you
Back to
Seekers of Perl Wisdom
|
|