in reply to Strip HTML line breaks from list of URLs
Depending on the size of you data (and if I understand what you are doing) it might be easier to use HTML::LinkExtor