Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^7: Create CSV file from xlsx file

by viji234 (Initiate)
on Oct 25, 2013 at 06:00 UTC ( #1059585=note: print w/replies, xml ) Need Help??

in reply to Re^6: Create CSV file from xlsx file
in thread Create CSV file from xlsx file

thank you .. Again i installed Spreadsheet::Read as mentioned by you and mart. when i ran the command its giving the same error.
error: 'xlscat' is not recognized as an internal or external command,operable + program or batch file.
xlscat -S 1 -C 9-11,21 -c sample.xlsx >file1.csv

Replies are listed 'Best First'.
Re^8: Create CSV file from xlsx file
by marto (Archbishop) on Oct 25, 2013 at 06:42 UTC

    If you installed the module and answered yes to installing these tools then something is wrong with your setup. Perhaps your path is wrong in that it's missing. I'll come back to this. These tools are perl scripts, you can download them and run them as you would any other perl script. Save this link as xlscat, given that I suspect that your setup may be messed up run the commands in the same location as you saved the file above:

    perl xlscat -S 1 -C 9-11,21 -c sample.xlsx >file1.csv

    Which version of Perl do you have installed? The output of the following would be helpful in further diagnosing the issue above:

    c:\path c:\perl -V

    If you paste the output of these commands into a reply here (remember the code tags please) we can work towards resolving the problem.

      FWIW -S has to come before scriptname :)

        Works for me with a text spreadsheet, 1 row, 22 cols:

        D:\>perl -S 1 -C 9-11,21 -c sample.xlsx >file1.csv D:\>type file1.csv 9,10,11,21

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1059585]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2018-06-19 20:12 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (114 votes). Check out past polls.