Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

Comment on Reading Excel file in perl
Re: Reading Excel file in perl
by bitingduck (Friar) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1002803]
Approved by rovf
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-07-26 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls