B. Fongo wrote: > I tried to divert the output of print <<EOF to a file.txt, but pern > warns of uninitialized value. > The filehandle below succeeded - so what is not initialized? > > ------------------------------------------------------------------- > > open (OUT, ">$dirhandle\$file") || die "Can't create the html > template: $!";
This probably isn't doing what you think it is. > > # What may be wrong on the next line? Error warning: Use of > uninitialized value .. > print OUT <<EOF; > <html><head><title>$title</title></head> > <body></body> > </html> > > EOF $title is the only thing it could be. > Close OUT; "close", not "Close". -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>