in reply to Need to create CSV using Text::CSV

Instead of passing elements of your array to print, just use a refernce to the entire array. Does that fix it?

Replies are listed 'Best First'.
Re^2: Need to create CSV using Text::CSV
by oldwarrior32 (Sexton) on Jun 17, 2012 at 03:49 UTC

    I tried that but the output is a CSV of array references(see the ending of my post).