I concur with the advice space_monk has given you. We get these types of questions every day or two: search in Super Search for Text::CSV or, if you prefer, here's one I prepared earlier :-)
Some additional information:
-
CPAN (uppercase) stands for Comprehensive Perl Archive Network. It's a searchable repository of Perl modules.
-
cpan (lowercase) is a command line utility for interacting with CPAN. You get this for free: it's installed when you install Perl. When you write "cpan" in your posts, this is what people will think you are referring to.
-
When you wish to refer to a CPAN module, you should do so by name. It's helpful to provide a link to the module in question, as I did in my original reply to you. There's Shortcuts for doing this.
-
Don't reply to yourself as you did with (Re^2) "... csv to text directly" (Re^3) "and i was thinking ..."; just edit your post as explained in "How do I change/delete my post?".
-
In order to get the best possible responses to your questions, follow the guidelines in "How do I post a question effectively?".