Unrecognized escape \O passed through at perltest2.cgi line 6.
Looks like you have:
my $FileName = "C:\excel\Onsite_Report(15).xlsx";
Perl sees two escape sequences in this string: \e
and \O
. The \e
doesn't cause an error as it is a valid escape:
But the \O
isn't. Use single quotes so Perl doesn't interpolate the escapes:
my $FileName = 'C:\excel\Onsite_Report(15).xlsx';