G
Geoff Cox
Hello,
I am getting the following error message for the last 3 files being
processed only, and must be doing something wrong - not sure what
though. The code works.
print() on closed filehandle OUT2 at hp3.pl line 33, <IN> line 12.
The code is
open (IN, $name);
open OUT, (">>hp-$name");
open OUT2, (">>html/hp-index.htm");
while (defined(my $line = <IN>)) {
if ($line =~ /<title>(.*?)- (.*?)<\/title>/) {
print OUT2 ('<a href="hp-$htmlname.htm">$1 $2</a> <br>\n');
Thanks for any ideas.
Geoff
I am getting the following error message for the last 3 files being
processed only, and must be doing something wrong - not sure what
though. The code works.
print() on closed filehandle OUT2 at hp3.pl line 33, <IN> line 12.
The code is
open (IN, $name);
open OUT, (">>hp-$name");
open OUT2, (">>html/hp-index.htm");
while (defined(my $line = <IN>)) {
if ($line =~ /<title>(.*?)- (.*?)<\/title>/) {
print OUT2 ('<a href="hp-$htmlname.htm">$1 $2</a> <br>\n');
Thanks for any ideas.
Geoff