The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TextCSV - Read file with Text::CSV

SYNOPSIS

 use App::PerlShell::Plugin::TextCSV;

DESCRIPTION

This module implements easy reading of comma separated value files with Text::CSV.

COMMANDS

TextCSV - provide help

Provides help.

METHODS

textcsv - read CSV file

 [@csv =] textcsv file [Text::CSV OPTIONS];

Given file, read in as CSV and return fields to screen or in optional array. File must be first argument, see Text::CSV for additional options and syntax.

EXAMPLES

  use App::PerlShell::Plugin::TextCSV;
  @csv = textcsv 'file.csv', {binary => 1};
  print Dumper \@csv;
  
  print $csv[0]->[1]; # print value at first column, second row

SEE ALSO

Text::CSV

LICENSE

This software is released under the same terms as Perl itself. If you don't know what that means visit http://perl.com/.

AUTHOR

Copyright (c) 2017 Michael Vincent

http://www.VinsWorld.com

All rights reserved