App-SpreadsheetUtils
view release on metacpan or search on metacpan
lib/App/SpreadsheetUtils.pm view on Meta::CPAN
my $meta;
CREATE_META: {
$meta = {
v => 1.1,
summary => $summary,
description => $description,
args => {},
args_rels => {},
links => $links,
examples => $examples,
};
CREATE_ARGS_PROP: {
if ($add_args) {
$meta->{args}{$_} = $add_args->{$_} for keys %$add_args;
}
if ($reads_csv) {
$meta->{args}{$_} = {%{$argspecs_csv_input{$_}}} for keys %argspecs_csv_input;
if ($reads_multiple_csv) {
$meta->{args}{input_filenames} = {%{$argspecopt_input_filenames{input_filenames}}};
_add_arg_pos($meta->{args}, 'input_filenames', 'slurpy');
} else {
$meta->{args}{input_filename} = {%{$argspecopt_input_filename{input_filename}}};
_add_arg_pos($meta->{args}, 'input_filename');
}
} # if reads_csv
if ($writes_csv) {
$meta->{args}{$_} = {%{$argspecs_csv_output{$_}}} for keys %argspecs_csv_output;
if ($writes_multiple_csv) {
$meta->{args}{output_filenames} = {%{$argspecopt_output_filenames{output_filenames}}};
_add_arg_pos($meta->{args}, 'output_filenames', 'slurpy');
} else {
$meta->{args}{output_filename} = {%{$argspecopt_output_filename{output_filename}}};
_add_arg_pos($meta->{args}, 'output_filename');
}
$meta->{args}{overwrite} = {%{$argspecopt_overwrite{overwrite}}};
} # if outputs csv
} # CREATE_ARGS_PROP
CREATE_ARGS_RELS_PROP: {
$meta->{args_rels} = {};
if ($add_args_rels) {
$meta->{args_rels}{$_} = $add_args_rels->{$_} for keys %$add_args_rels;
}
} # CREATE_ARGS_RELS_PROP
if ($add_meta_props) {
$meta->{$_} = $add_meta_props->{$_} for keys %$add_meta_props;
}
} # CREATE_META
{
my $package = caller();
no strict 'refs'; ## no critic: TestingAndDebugging::ProhibitNoStrict
*{"$package\::$name"} = $code;
#use DD; dd $meta;
${"$package\::SPEC"}{$name} = $meta;
}
1;
}
1;
# ABSTRACT: CLI utilities related to spreadsheet (XLS, XLSX, ODS, ...)
__END__
=pod
=encoding UTF-8
=head1 NAME
App::SpreadsheetUtils - CLI utilities related to spreadsheet (XLS, XLSX, ODS, ...)
=head1 VERSION
This document describes version 0.004 of App::SpreadsheetUtils (from Perl distribution App-SpreadsheetUtils), released on 2023-03-19.
=head1 DESCRIPTION
This distribution contains the following CLI utilities:
=over
=item * L<ss-info>
=item * L<ss-list-sheets>
=item * L<ss2csv>
=item * L<ss2ss>
=back
=for Pod::Coverage ^(gen_ss_util)$
=head1 FUNCTIONS
=head2 compile_eval_code
Usage:
$coderef = compile_eval_code($str, $label);
Compile string code C<$str> to coderef in 'main' package, without C<use strict>
or C<use warnings>. Die on compile error.
=head2 eval_code
Usage:
$res = eval_code($coderef, $r, $topic_var_value, $return_topic_var);
( run in 1.574 second using v1.01-cache-2.11-cpan-5837b0d9d2c )