MPJD
asked on
.XLS to CSV using Perl
Hello,
I need your urgent help!
I need to pass 3 excel files to a Perl program and need to generate a csv file containing a merged version. I am not really a Perl programmer, but this is the part of my job which I need to complete ASAP. Your help will be highly appreciated.
I need your urgent help!
I need to pass 3 excel files to a Perl program and need to generate a csv file containing a merged version. I am not really a Perl programmer, but this is the part of my job which I need to complete ASAP. Your help will be highly appreciated.
can you show me a sample of your excel files. This can be done using Win32::OLE.
I have the code to read excel files. i can modify it according to your needs.
thank you
I have the code to read excel files. i can modify it according to your needs.
thank you
ASKER
The Excel Files can be saved in CSV format.
The sample is:
1st file:
Branch_no
Line_no
BR_Manager
2nd File:
Branch_no
Line_no
BR_city
BR_state
BR_zip
3rd file:
Branch_no
Line_no
FName
LName
I want all the fields from all 3 files and the join columns will be Branch_no and Line_no
The sample is:
1st file:
Branch_no
Line_no
BR_Manager
2nd File:
Branch_no
Line_no
BR_city
BR_state
BR_zip
3rd file:
Branch_no
Line_no
FName
LName
I want all the fields from all 3 files and the join columns will be Branch_no and Line_no
can you please give some values for the fields so that i can test.
and how big are these excel files.. how many rows?
and how big are these excel files.. how many rows?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks nedfine,
This is certainly helping me!!
This is certainly helping me!!
If not, then either use Spreadsheet::ParseExcel module
http://search.cpan.org/dist/Spreadsheet-ParseExcel/lib/Spreadsheet/ParseExcel.pm
or if you are on Windows box, you could use Win32::OLE to achieve the same type of thing you could do with VB.