in reply to Re^2: Reading Excel
in thread Reading Excel

Can you open the file in Excel ?. Run this to show the versions you have

#!perl use strict; use warnings; use Win32::OLE qw(in with); # get already active Excel application or open new my $Excel = Win32::OLE->GetActiveObject('Excel.Application') || Win32::OLE->new('Excel.Application', 'Quit'); print "Perl $] Win32::OLE Version ${Win32::OLE::VERSION}\n"; print "Running Excel $Excel->{'Version'} on $Excel->{'OperatingSystem +'}\n";
poj

Replies are listed 'Best First'.
Re^4: Reading Excel
by ravi179 (Novice) on Jan 27, 2017 at 10:07 UTC

    perl 5.008009 Win32::OLE version 0.1709....Running Excel 15.0 on. I am unable to deal with Excel also..Same error is coming in both the cases.

      If Excel cannot open the file, Perl-using-Excel will not be able to open the file either.

      The lesson here is to check your input data and not make assumptions. If Excel can't open the file how would calling Excel using Perl be any different?

        Normally if i open in Excel it is opening.When iam trying to open it using Perl Script it is not opening

      perl 5.8.9 is rather old, you should try updating your perl