| 1 | package Text::CSV_XS::TSV; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY | |||||||||
| 4 | 1 | our $DATE = '2019-12-12'; # DATE | |||||||||
| 5 | 1 | our $DIST = 'Text-CSV_XS-TSV'; # DIST | |||||||||
| 6 | 1 | our $VERSION = '0.003'; # VERSION | |||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | use parent 'Text::CSV_XS'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||
| 14 | 0 | my $class = shift; | |||||||||
| 15 | |||||||||||
| 16 | 0 | ▶ | my $opts = $_[0] ? { %{$_[0]} } : {}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 0 | ▶ | $opts->{sep_char} = "\t" unless exists $opts->{sep_char}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 0 | ▶ | $opts->{quote_char} = undef unless exists $opts->{quote_char}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | 0 | ▶ | $opts->{escape_char} = undef unless exists $opts->{escape_char}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | |||||||||||
| 21 | 0 | $class->SUPER::new($opts); | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 1 | 1; | |||||||||
| 25 | # ABSTRACT: Set Text::CSV_XS default options to parse TSV | ||||||||||
| 26 | |||||||||||
| 27 | __END__ | ||||||||||