Here is the cgi script Im using
#!/usr/local/bin/perl
use LWP::Simple;
#retrieve the page which should be modified
my $page = get("http://www.url.com");
$page =~ s/\n//g;
#everything above this will be cut off
$page =~ s/^.*<\/head>//is;
#everything below this will be cut off
$page =~ s/<\/body>.*$//is;
print "Content-type: text/html\n\n";
#print result
print "$page";
It works ok, except I want to use any html command to start and end cutting. It only works if I place a command like <HTML> or <BODY> or <HEAD>. Those are the only ones I can get to work. A little help please?
#!/usr/local/bin/perl
use LWP::Simple;
#retrieve the page which should be modified
my $page = get("http://www.url.com");
$page =~ s/\n//g;
#everything above this will be cut off
$page =~ s/^.*<\/head>//is;
#everything below this will be cut off
$page =~ s/<\/body>.*$//is;
print "Content-type: text/html\n\n";
#print result
print "$page";
It works ok, except I want to use any html command to start and end cutting. It only works if I place a command like <HTML> or <BODY> or <HEAD>. Those are the only ones I can get to work. A little help please?