App-CSVUtils

 view release on metacpan or  search on metacpan

lib/App/CSVUtils/csv_check_cell_values.pm  view on Meta::CPAN

88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
},
 
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

188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
Check 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

425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
It 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
 
 
=head1 SEE ALSO



( run in 0.473 second using v1.01-cache-2.11-cpan-607d282f910 )