December 30th, 2012, 10:51 PM
In perl programming ,how to avoid the \x93 error ? In my code
my $FileName = “/home/selva/Report.xls";
my $parser = Spreadsheet::ParseExcel->new();
my $workbook = $parser->parse($FileName);
die $parser->error(), ".\n" if ( !defined $workbook );
Error is pasted below
Unrecognized chatacter \x93; marked by <-- HERE after ua->ilename<<-- HERE near column 20 at ipb.pl line 6.
Kindly suggest me how to resolve it.Thanks in advance.
December 31st, 2012, 02:31 AM
Try to retype line 6 entirely, there must be a hidden character somewhere.
December 31st, 2012, 09:47 AM
I see an issue (a "smart quote") at column 16 (not 20) of line 6, which tells me 2 things. You're using a word processor instead of a text editor and the code you posted is not the exact same code that generated the warning.
December 31st, 2012, 12:02 PM
I have rewritten the 6th line of the code and the code is running fine now.Thanks a lot