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

Hi Corion thanks for your reply. How do i modify $row? how do i add items to it, remove items to it...
  • Comment on Re^2: Text::CSV module, writing some data on a csv.

Replies are listed 'Best First'.
Re^3: Text::CSV module, writing some data on a csv.
by hippo (Archbishop) on Apr 06, 2016 at 10:47 UTC

    $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.