1SQL::Translator::ParserU:s:exrSVC(o3n)tributed Perl DocuSmQeLn:t:aTtriaonnslator::Parser::xSV(3)
2
3
4
6 SQL::Translator::Parser::xSV - parser for arbitrarily delimited text
7 files
8
10 use SQL::Translator;
11 use SQL::Translator::Parser::xSV;
12
13 my $translator = SQL::Translator->new(
14 parser => 'xSV',
15 parser_args => { field_separator => "\t" },
16 );
17
19 Parses arbitrarily delimited text files. See the Text::RecordParser
20 manpage for arguments on how to parse the file (e.g.,
21 "field_separator", "record_separator"). Other arguments include:
22
24 · scan_fields
25
26 Indicates that the columns should be scanned to determine data
27 types and field sizes. True by default.
28
29 · trim_fields
30
31 A shortcut to sending filters to Text::RecordParser, will create
32 callbacks that trim leading and trailing spaces from fields and
33 headers. True by default.
34
35 Field names will automatically be normalized by
36 "SQL::Translator::Utils::normalize_name".
37
39 Darren Chamberlain <darren@cpan.org>, Ken Y. Clark <kclark@cpan.org>.
40
42 Text::RecordParser, SQL::Translator.
43
44
45
46perl v5.28.0 2013-06-28 SQL::Translator::Parser::xSV(3)