Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: CONVERTING CSV TO XLS

by Tux (Abbot)
on May 26, 2014 at 06:25 UTC ( #1087393=note: print w/replies, xml ) Need Help??


in reply to CONVERTING CSV TO XLS

Fragile code. Your CSV parsing is using split which is bound to break.

What you want to do is already done in csv2xls which comes with Text::CSV_XS. You can learn by reading the code. It is Open Source.


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: CONVERTING CSV TO XLS
by mayanks94 (Initiate) on May 26, 2014 at 07:15 UTC
    Sir, Could you please help me out and remove the 'split' and add the appropriate method to make the code work and post it :)
        Sir, Would you be kind enough to edit this code only ? and make changes to the split part in order for it to perform the function i want the program to do ?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2017-11-18 11:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?