SQL::Tr...er::xSV(3)
π
SQL::Translator::Parser::xSV(3) π
okay so this is the manual page for SQL::Translator::Parser::xSV, straight out of the User Contributed Perl Documentation corner of the internet. Itβs giving βparser for arbitrarily delimited text filesβ and honestly? iconic. π¦
β¨ NAME β¨
SQL::Translator::Parser::xSV β parser for arbitrarily delimited text files. No cap: the delimiter can be whatever you need, bestie. π
π SYNOPSIS π
Load it up like this:
use SQL::Translator;
use SQL::Translator::Parser::xSV;
my $translator = SQL::Translator->new(
parser => 'xSV',
parser_args => { field_separator => "\t" },
);
πΈ DESCRIPTION πΈ
This bad boy parses arbitrarily delimited text files. For the arguments on how to parse the file β e.g., field_separator, record_separator β see the Text::RecordParser manpage. Thatβs where the parsing knobs live, iykyk. π
Other arguments include:
π OPTIONS π
scan_fieldsβ indicates that the columns should be scanned to determine data types and field sizes. True by default. π΅οΈββοΈtrim_fieldsβ a shortcut to sending filters toText::RecordParser; it will create callbacks that trim leading and trailing spaces from fields and headers. True by default. βοΈ
Field names will automatically be normalized by SQL::Translator::Utils::normalize_name. Automatic field-name glow-up, periodt. β¨
π AUTHORS π
Shoutout to the icons who made this happen:
- Darren Chamberlain
<darren@cpan.org> - Ken Y. Clark
<kclark@cpan.org>
π₯ SEE ALSO π₯
Text::RecordParser, SQL::Translator. Go read those too, bestie. π«Ά
π Sign-off: this page is servingperl v5.42.0realness, dated2024-12-12, and the manual isSQL::Tr...er::xSV(3)β mwah! π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-SQL-Translator 1.660.0-bp160.1.11 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms