blib/lib/oEdtk/lib/index_Remise_en_poste.pl untested

filter: Statementstmt 0.0% 0 / 25 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 38 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 use strict;
4 use warnings;
5  
6 use oEdtk::Main;
7 use oEdtk::Config qw(config_read);
8 use oEdtk::DBAdmin qw(db_connect);
9 use oEdtk::Outmngr qw(omgr_depot_poste);
10  
11 if ( @ARGV < 2 or $ARGV[0] =~ /-h/i ) {
12 warn "Usage: $0 <idldoc> <yyyymmdd>\n\n or for a range of values $0 <nnn%> <yyyymmdd>\n\n";
13 warn "\tThis loads post date for idldoc.\n";
14 exit 1;
15 }
16  
17 my $cfg = config_read('EDTK_DB');
18 my $dbh = db_connect( $cfg, 'EDTK_DBI_STATS', { AutoCommit => 1, RaiseError => 1 } );
19  
20 omgr_depot_poste( $dbh, $ARGV[0], $ARGV[1] );