• Home
  • Popular Downloads
  • Contact Us
  • Submit

Softpile

Free Downloads

Main Navigation
  • Home
  • Windows
  • Mac OS X
  • Business
  • Desktop
  • Development
  • Education
  • Games
  • Internet
  • Multimedia
  • Utilities
Home » Linux » Text::CSV::Simple

Text::CSV::Simple

June 18, 2009
Simpler parsing of CSV files
Version: 1.00
License: Perl Artistic License
Operating System: Linux
Homepage: search.cpan.org
Developed by: Tony Bowden
Text::CSV::Simple is a Perl module to simplify parsing of CSV files.

SYNOPSIS

 my $parser = Text::CSV::Simple->new;
 my @data = $parser->read_file($datafile);
 print @$_ foreach @data;

 # Only want certain fields?
 my $parser = Text::CSV::Simple->new;
 $parser->want_fields(1, 2, 4, 8);
 my @data = $parser->read_file($datafile);

 # Map the fields to a hash?
 my $parser = Text::CSV::Simple->new;
 $parser->field_map(qw/id name null town/);
 my @data = $parser->read_file($datafile);

Parsing CSV files is nasty. It seems so simple, but it usually isn't. Thankfully Text::CSV_XS takes care of most of that nastiness for us.

Like many modules which have to deal with all manner of nastiness and edge cases, however, it can be clumsy to work with in the simple case.

Thus this module.

We simply provide a little wrapper around Text::CSV_XS to streamline the common case scenario. (Or at least my common case scenario; feel free to write your own wrapper if this one doesn't do what you want).
csv csv parser parser perl perl module
Free Download 4K
0
  • Share on:

Text::CSV::Simple User Reviews

Sponsored

Categories

  • Linux

Related Downloads

CPAN::Reporter::Smoker::Safer
Turnkey smoking of installed distros
List::Filter::Storage::CODE
Reads in standard libraries of filters from code
String::Clean
Use data objects to clean strings
Games::Worms
Alife simulator for Conway/Patterson/Beeler worms, etc
CSS
Object oriented access to Cascading Style Sheets (CSS)
Copyright © 1999-2017 Softpile Free Downloads
  • Contact Us
  • Submit
  • Privacy Policy
  • Disclaimer
  • Terms of Use