Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2016-09-26 18:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (487 votes). Check out past polls.