in reply to Parsing Data in xlsx file
Perlmonks is not a code writing service. We can help you solve your problem, but we won't solve it for you.
Which part are you having trouble with? What code have you written so far?
Excel::Writer::XLSX can write XLSX files for you, which is the hardest part of the task.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Parsing Data in xlsx file
by Rahul Gupta (Sexton) on Aug 02, 2012 at 08:16 UTC | |
i have tried this thing all text file data is in @executioncontents array
It parse the data in xlsx file in differnt manner from the way it is in acutal file
Please anyone can help me to parse the data in xlsx file the way it is in actal file. Thanks in advance | [reply] [d/l] [select] |
by moritz (Cardinal) on Aug 02, 2012 at 08:37 UTC | |
Somehow your parsing code and your data don't seem to be related at all. For example your code checks if the data has 11 columns, but your data only has 5 columns. So no wonder it doesn't work. (Your data sample has 11 interesting rows, but I guess that's more of a coincidence. I'd approach the problem like this:
| [reply] [d/l] |
by Rahul Gupta (Sexton) on Aug 02, 2012 at 10:29 UTC | |
Sorry that's by mistake, i put only 5 columns here in actual data i have 11 columns.if it works for 5 columns then for sure it will work for 11 colums . so please help me . | [reply] |
by Rahul Gupta (Sexton) on Aug 02, 2012 at 10:33 UTC | |
Sorry, that's by mistake, I put only 5 columns here, in actual data i have 11 columns,i think if it works for 5 columns than for sure it will work for 11 columns also. please help me to resolve this problem. | [reply] |
by Rahul Gupta (Sexton) on Aug 02, 2012 at 11:09 UTC | |
same data is coming twice or sometimes thrice. Thanks | [reply] [d/l] |
by roboticus (Chancellor) on Aug 02, 2012 at 11:22 UTC | |
After glancing at your code, I'd suggest you sanitize it a bit. By sanitize, I don't mean "clean up"--I mean "make less insane". If you name a function readhash I would expect that it would do something like, say, reading a hash from some source. I certainly wouldn't expect it to write a spreadsheet. Perhaps naming it something like "write_spreadsheet" would be less confusing? ...roboticus When your only tool is a hammer, all problems look like your thumb. | [reply] [d/l] |