Batch M wrote:
>
> Hail,
Hello,
> Oreilly's book says..." To suppress this warning,
> assign an initial value to your variables."
>
> what value should I attached to:
>
> $content = $header_html . $1 . $footer_html;
>
> from:
>
> 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";
> }
>
> What does $1 point to?
$1 is assigned to by the regular expression match inside the parentheses
(.*?) Because the variable $1 is used after a successful match it will
contain a value that can be used safely in concatenation.
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]