Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Reading Excel file in perl

by Pauler (Initiate)
on Nov 08, 2012 at 04:31 UTC ( #1002803=perlquestion: print w/replies, xml ) Need Help??
Pauler has asked for the wisdom of the Perl Monks concerning the following question:

Hi Folks, I am new to perl language, Please help me by sharing ur knowledge for a small query of "How to read the rows & columns of an excel sheet which is located in my home drive(p drive)" I have gone through some spreadsheet::Parseexcel module, but no luck. Thanks in advance for the knowledge sharing

Replies are listed 'Best First'.
Re: Reading Excel file in perl
by bitingduck (Chaplain) on Nov 08, 2012 at 04:39 UTC
    Can you show some code that you tried and tell us what went wrong with it? Have you tried just running the example that's given in the docs using a really simple spreadsheet?
      I havent tried nythng manually, i jst went thru the docs. I am confused of how to give the path where my excel file is saved.

        Assuming you already know you have perl installed in your system, can run a perl program, and know that the Spreadsheet::ParseExcel module is installed:

        It looks like you can take the code in the "synopsis" and cut and paste it to be your test program. Copy it into a text editor and save it as something like "". this is your perl program.

        Then take a simple excel file (maybe 4 cells by 4 cells, and fill them with numbers 1 through 16 in order) and save it into the same directory as your perl program that you just saved. For convenience you can save it as "Book1.xls", which is the name used in the example

        Then you should be able to go to the directory that your program is in and run the program from there. (e.g. assuming you're on a unix system, type perl

        If you haven't even gotten as far as running a perl program, tell us about your system and depending on what it is, someone will probably be able to point you to somewhere that will help you sort out how to do that first.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1002803]
Approved by rovf
[Discipulus]: here at my $work fuc**ing bas**ds proposed to everyone 20 free month of pay to leave
[Discipulus]: I expect a cut of 20% of emplyoment nexet year..
[choroba]: 20 months? :-o

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2018-05-23 20:56 GMT
Find Nodes?
    Voting Booth?