Yes, all rows are complete.
To check RegExp, I was printing each new line and after parsing the data to the DB directly was quering for a new entry using unique ID (index). To check each parsed line I use the following code:
# Display RexExp results
print STDERR join("\t",@arguments),"\n";
<here add all data from @argumens to a DB (as described in the origina
+l post)>
# check if data parsed successfully
my $sql2 = 'SELECT *
FROM hist_mod_score
WHERE Counts=?';
$sth = $dbh->prepare($sql2) or die $dbh->errstr;
$sth->execute($index) or die $sth->errstr;
# dump fetched query results
$sth->dump_results if $sth->{NUM_OF_FIELDS};
In the output I've got the following:
0 SM_Th2_1_K27ac SM Th2 1 K27ac Tbx21-1 4.8878613
+2768108e-10
0 rows
1 SM_Th2_1_K27ac SM Th2 1 K27ac Tbx21-2 3.8016699
+2152973e-10
0 rows
...
120 SM_Th2_2_K9me3 SM Th2 2 K9me3 Tbx21-21 4.1899
+3008961981e-10
'120', 'SM_Th2_2_K9me3', 'SM', 'Th2', '2', 'K9me3', 'Tbx21-21', '4.189
+93008961981e-10'
1 rows
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.