I'm trying to get a html utility script I found on the site to run.
section of code containing unable to parse error
if($content=~m|<BODY.*?>(.*?)</BODY>|si) {
$content = $header_html . $1 . $footer_html;
$content =~ s|%title%|$title|;
&save_file("$fullpath",$content);
print "Completed\n";
} else{
print "Couldn't parse\n";
}
I defined $header_html and $footer_html.
Pointing to the actual html header and footer files.
my $header_html= 'C:/My Documents/carlist/carlist_test/template/cchead
+er.html';
my $footer_html= 'C:/My Documents/carlist/carlist_test/template/ccfoot
+er.html';
stops with a 'unable to parse' error at line
$content = $header_html . $1 . $footer_html;
Thanks,
Stretch