C:\Perl64\bin>Perl entities_99.pl "my" variable $backupoutput masks earlier declaration in same scope at entities_99.pl line 11. Use of uninitialized value $backupoutput in substitution (s///) at entities_99.pl line 11. Use of uninitialized value $backupoutput in concatenation (.) or string at entities_99.pl line 17. print() on closed filehandle OUT at entities_99.pl line 18. #### 1 #!/usr/bin/perl -w 4 use strict; 5 use Data::Dumper; 6 $|=1; #makes the macro produce all results at once, not in spurts 8 my $filename = "RAH99.html"; 9 my $output = $filename; 10 my $backupoutput = $filename; 11 my $backupoutput =~ s{\.html*}{.entbackup.html}i; 13 open (IN, $filename); 14 my $book = join('',); 15 close IN; 17 open (OUT, ">$backupoutput"); 18 print OUT $book; 19 close OUT; 22 $book =~ s/‘/‘/g; 23 $book =~ s/’/’/g; #### 79 $book =~ s/û/û/g; 80 $book =~ s/ü/ü/g; 82 my $utf8 = qq!!; 84 $book = "I have changed the most common Unicode characters into HTML entities.\n\nUse this search term to find any leftovers: [€-ÿ]\n\nAlso, don't forget to add a UTF-8 meta tag to your header:\n\n$utf8\n\n".$book; 87 open (OUT, ">$filename"); 88 print OUT $book; 89 close OUT;