- or download this
my $statement = qq(
INSERT INTO dickens VALUES ($word, $Line{$word})
);
- or download this
my $sth = $dbh->prepare('INSERT INTO dickens VALUES(?, ?)');
# and then, as often as you want:
$sth->execute($line, $count);
- or download this
CREATE TABLE dickens (
word VARCHAR(30),
line INTEGER,
);
- or download this
foreach $word ( @theseWords ) {
my @lines = split m/ ,/, $Line{$word};
...
$sth->execute($word, $_);
}
}