http://www.perlmonks.org?node_id=1002803

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 "myexceltest.pl". 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 myexceltest.pl

        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.