Data-PcAxis
view release on metacpan or search on metacpan
lib/Data/PcAxis.pm view on Meta::CPAN
# double up end-of-line semicolons to solve problem of semicolons appearing within fields
$line =~ s/;$/;;/g;
$meta = $tmp . $line;
}
close $fh;
# join broken lines (e.g. TITLE="...Very Long"\n"Title")
$meta =~ s/""/ /g;
# split metadata string into array
my @meta = split ';;', $meta;
# initialise Text::CSV objects for parsing options and values
my $csv_opt = Text::CSV->new({binary=>1}) or die Text::CSV->error_diag();
my $csv_val = Text::CSV->new({binary=>1}) or die Text::CSV->error_diag();
# parse metadata array into a hash
my $metadata;
for my $i (0..$#meta) {
( run in 0.464 second using v1.01-cache-2.11-cpan-71847e10f99 )