App-CSVUtils
view release on metacpan or search on metacpan
lib/App/CSVUtils/csv_check_cell_values.pm view on Meta::CPAN
888990919293949596979899100101102103104105106107},
links
=> [
{
url
=>
'prog:csv-check-field-values'
,
summary
=>
'Check of the values of whole fields'
},
],
tags
=> [
'accepts-schema'
,
'accepts-regex'
,
'category:checking'
],
examples
=> [
{
summary
=>
'Check whether the `rank` field has monotonically increasing values'
,
argv
=> [
'formula.csv'
,
'-f'
,
'rank'
,
'--with-schema'
,
'array/num//monotonically_increasing'
],
test
=> 0,
'x.doc.show_result'
=> 0,
},
],
writes_csv
=> 0,
on_input_data_row
=>
sub
{
my
$r
=
shift
;
lib/App/CSVUtils/csv_check_cell_values.pm view on Meta::CPAN
188189190191192193194195196197198199200201202203204205206207208Check the value of single cells of CSV against codeE<sol>schemaE<sol>regex.
Examples:
=over
=item * Check whether the `rank` field has monotonically increasing values:
csv_check_cell_values(
input_filename => "formula.csv",
include_fields => ["rank"],
with_schema => "array/num//monotonically_increasing"
);
=back
Example C<input.csv>:
ingredient,%weight
foo,81
script/csv-check-cell-values view on Meta::CPAN
425426427428429430431432433434435436437438439440441442443444445It is also recommended to install L<shcompgen> (see above).
=head2 other shells
For fish and zsh, install L<shcompgen> as described above.
=head1 EXAMPLES
=head2 Check whether the `rank` field has monotonically increasing values
% csv-check-cell-values formula.csv -f rank --with-schema array/num//monotonically_increasing
=head1 HOMEPAGE
Please visit the project's homepage at L<https://metacpan.org/release/App-CSVUtils>.
=head1 SOURCE
Source repository is at L<https://github.com/perlancar/perl-App-CSVUtils>.
=head1 SEE ALSO
( run in 0.473 second using v1.01-cache-2.11-cpan-607d282f910 )