No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Many thanks again to everyone for all your great help! All your solutions are very tempting. Especially regexp code always looks like pure magic to me. :-) For the moment I've decided to go with the Mojo::DOM alternative, since I'm still very unexperienced with Perl, and since it's understandable for me at least to a little extent. So far it gives me really promising results. There's this wall I ran into, though:
In there, the fields "Street name", "Street number", "ZIP code" and "City name" have been carelessly filled into just a single field, separated by the <br/> element. With your help I'm now able to access the whole string with $dom->find('address'), but no matter what I do, the <br/> element in it always gets removed, so it seems to me that I cannot search inside the address string. I thought this might be because Perl treats it as white space, but I wasn't able to find anything useful. Could you please give me a hint? By the way, thank you for your advice to use Text::CSV. That's a great idea, and I will definitely do that!In reply to Re^2: How to parse not closed HTML tags that don't have any attributes? (updated)
by Rantanplan
|
|