in reply to Text::CSV module, writing some data on a csv.

Most likely you would be doing that either by modifying $row before pushing it onto @rows or by creating your new target row by creating it from the values in $row. Where exactly do you encounter problems?

Replies are listed 'Best First'.
Re^2: Text::CSV module, writing some data on a csv.
by BlueStarry (Novice) on Apr 06, 2016 at 10:36 UTC
    Hi Corion thanks for your reply. How do i modify $row? how do i add items to it, remove items to it...

      $row is an array reference. See perlreftut for a gentle introduction to references. Adding and removing items to or from arrays is pretty much covered by push, pop, shift and unshift. There any many other ways (TIMTOWTDI) but those should get you started.

        I'm sorry but i don't get it. If @rows is the array, why do we need $row to store stuff inside it, i really don't get this piece of code.