What I see is that in your updated code the first line of use Text::CSV; has now been added. What I don't see is you putting the module to work in your solution. The synopsis section in the POD for Text::CSV gives several workable approaches to taking an array and turning it into a CSV string.
The void between where the synopsis leaves you and where your code wields Text::CSV to form a solution is quite small; There are only a few lines of code from the Text::CSV POD that will need to be adapted to match your specific application. That's where the fun of programming comes in.
|