Thread: \x93 error

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    3
    Rep Power
    0

    \x93 error


    In perl programming ,how to avoid the \x93 error ? In my code

    #!/usr/bin/perl w

    use strict;
    use Spreadsheet::ParseExcel;

    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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2012
    Location
    Paris area, France
    Posts
    842
    Rep Power
    496
    Try to retype line 6 entirely, there must be a hidden character somewhere.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Apr 2009
    Posts
    1,954
    Rep Power
    1225
    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.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    3
    Rep Power
    0
    I have rewritten the 6th line of the code and the code is running fine now.Thanks a lot

IMN logo majestic logo threadwatch logo seochat tools logo