Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 231ab86c9a
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (18 sloc) 1.013 kb
Simple CSV (comma-separated values) format parser for Perl 6.
use v6;
use Text::CSV;
Oh, and the C<read> methods take the following named parameters:
:trim Removes whitespace on both ends of each value.
:skip-header Causes the first line not to be included in the output.
:strict Throws an error if a row has a different number of columns
than the previous ones.
:output Determines the shape of the returned data structure.
Allowed values are 'arrays' (the default), 'hashes',
and any type object (i.e. ':output(MyType)').
When the value is 'hashes' or a type object, the first line
is assumed to be a special header line, the values on that
line are used as hash keys, and :skip-header is suppressed.
== License
This module is released under Artistic 2.0. See LICENSE.
Jump to Line
Something went wrong with that request. Please try again.