perl_war has asked for the wisdom of the Perl Monks concerning the following question:
I wanted to convert a perl hash to csv.
I realize this is easy using Text::CSV::Slurp but performance is better in Text::CSV_XS .
In Text::CSV::Slurp I would use create(input=>$object) function.
In Text::CSV_XS I would use print ($io, $colref); I would have to go through array of hashes line by line and use the above function.
What would be more computationally efficient?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perl hash to CSV using Text::CSV_XS
by kcott (Archbishop) on Oct 02, 2012 at 21:00 UTC | |
Re: perl hash to CSV using Text::CSV_XS
by runrig (Abbot) on Oct 02, 2012 at 21:26 UTC | |
Re: perl hash to CSV using Text::CSV_XS
by Tux (Canon) on Oct 05, 2012 at 09:58 UTC |
Back to
Seekers of Perl Wisdom