Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: Fetching table from website using HTML::TableExtractby shmem (Chancellor) |
on Mar 29, 2017 at 14:23 UTC ( [id://1186385]=note: print w/replies, xml ) | Need Help?? |
Corion doesn't mean you fix the data in the webpage directly, but after you have extracted it with HTML::TableExtract which is properly inserting empty fields for data cells skipped due to colspan or rowspan. But you have multiline fields: The second row of your $ts->rows is
After Level 31.02.2016 there's an empty field because of colspan="2". The next field is
so all you have to do is removing trailing whitespace/newlines from each field:
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|