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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Batch remove URLs
by bobafifi (Beadle) on Oct 29, 2017 at 20:28 UTC | |
by marto (Cardinal) on Oct 29, 2017 at 20:44 UTC |
In Section
Seekers of Perl Wisdom