$x =~ s/<p>wordage <a href='http:\/\/www.domain.com\/page.html'>wordage<\/a><\/p>//i;
The idea being to take $x, and remove a paragraph containing a link.
This regex on the other hand, which sits one line above the faultily-coded one, does still work, chopping out a few table tags from $x:
$x =~ s/<\/td><\/tr><\/table>//i;
Very confused after a few hours puzzling over this, does anything obvious leap out at somebody with greater experience than myself.. Thanks very much for any suggestions :)
Server OS is Red Hat Linux & server itself is Apache/2.0.40
Top few lines of my script:
#!/usr/bin/perl -w
use LWP::Simple;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use warnings;
print "Content-type: text/html\n\n";