stretch has asked for the wisdom of the Perl Monks concerning the following question:
I defined $header_html and $footer_html.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"; }
stops with a 'unable to parse' error at linemy $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';
Thanks, Stretch$content = $header_html . $1 . $footer_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 'unable to parse' error
by katgirl (Hermit) on Aug 15, 2002 at 08:00 UTC | |
|
Re: 'unable to parse' error
by stretch (Novice) on Aug 15, 2002 at 14:05 UTC |