http://qs321.pair.com?node_id=1202288


in reply to Batch remove URLs

"Once that was fixed, I just stacked the 300 one-liners on top of each other.."

Yikes

"..and it ran perfectly"

<html> <head> <title>test</title> </head> <body> <ul> <li><a href="http://perlmonks.org">perlmonks</a></li> <li><a href="http://archive.org">archnive.org</a></li> <li><a href="http://example1.com">test</a></li> </ul> </body> </html>

Becomes:

<html> <head> <title>test</title> </head> <body> <ul> <li><a href="http://perlmonks.org">perlmonks</a></li> <li><a href="http://archive.org">archnive.org</a></li> <li><a href="[404 Not Found]">test</a></li> </ul> </body> </html>

So when 'test' is clicked it will return something along the lines of:

The requested URL /[404 Not Found] was not found on this server

Rather than replacing the link with the text(<li>[404 Not Found]></li>). You've replaced one problem for another, rather than fix it.