script/load_table.pl untested

filter: Statementstmt 0.0% 0 / 11 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/local/bin/perl
2 use Getopt::Long qw(:config no_ignore_case);
3 use SimpleDBI;
4 GetOptions (\%h,
5 'type|t=s',
6 'host|h=s',
7 'usr|u=s',
8 'passwd|p=s',
9 'port|P=s',
10 'db|d=s',
11  
12 'table|T=s',
13 'file|f=s',
14 'field|F=s',
15 'replace|R=i',
16 'skip_head|H=i',
17  
18 'sep|s=s',
19 'charset|c=s',
20 );
21  
22 $h{field} = [ split ',', $h{field} ] if($h{field});
23 my $dbi = SimpleDBI->new(%h);
24 $dbi->load_table($h{file}, %$dbi);