in reply to Strip HTML line breaks from list of URLs

Without knowing what precisely you're trying to do overall, there's a certain amount of guesswork involved. But, that said, could you not simply do this?
@Old_URL = grep /href=/i, split(/(<|>|\s)+/, $input);
My recollection, which may be flawed, is that you cannot use classes such as \w and \s in an enumerated character class in a regex.