in reply to Re: Using perl to parse a file and update values into a database
in thread Using perl to parse a file and update values into a database
Now I have to read like table, column and values..my $config = Config::Tiny->read('testcase_.txt'); foreach my $section (sort keys %$config) { print "[$section]\n"; foreach my $parameter ( keys %{$config->{$section}}) { $parameter = $config->{$section}->{$parameter} +; #$SQL =~ s/.*\=//g; #print "$SQL\n"; my $sth = $dbh->prepare(qq{update $section set + $prepare where Id = 101}); $sth->execute(); $sth->finish(); print"$parameter\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using perl to parse a file and update values into a database
by 1nickt (Canon) on Jul 08, 2015 at 11:09 UTC | |
by bhushanQA (Sexton) on Jul 08, 2015 at 11:13 UTC | |
by bhushanQA (Sexton) on Jul 08, 2015 at 11:25 UTC | |
by bhushanQA (Sexton) on Jul 08, 2015 at 11:56 UTC | |
by 1nickt (Canon) on Jul 08, 2015 at 12:18 UTC |