When I run this Script I'm getting following error#!/usr/bin/perl -w use strict; use warnings; use Spreadsheet::WriteExcel; use Spreadsheet::ParseExcel; my $workbook = Spreadsheet::ParseExcel->new("/home/Admin/Desktop +/RP_processed_Address_withsubscriptionID (1).xls"); my $workbook1 = Spreadsheet::WriteExcel->new("/home/Admin/Desktop/ +new.xls"); open(my$old, '<', "$workbook") or die "oops!"; open(my$new, '>', "$workbook1") or die "ooops!"; while (my$line = <$workbook>) { print $workbook1 $line }
I'm not getting any idea where is script is going wrong . Please help me how to resolve this error your suggestions will be appreciable Is there any other method to read and write xls files in perl?Odd number of elements in hash assignment at /usr/local/share/perl5/Sp +readsheet/ParseExcel.pm line 167. oops! at sample.pl line 9.
What is the next step ???#!/usr/bin/perl -w use strict; use warnings; use Spreadsheet::ParseExcel; use Spreadsheet::WriteExcel; my $parser = Spreadsheet::ParseExcel->new(); my$workbook=$parse +r>parse('/home/Admin/Desktop/RP_processed_Address_withsubscriptionID +(1).xls'); my $workbook1 = Spreadsheet::WriteExcel->new("/home/Admin/Desktop/Perl +.xls");
In reply to Reading XLS file using Perl by rammohan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |