in reply to How do I write data in SQLite
while(@links) { $dbh->do( "INSERT INTO webpages_data VALUES('$a', '$_', '$text[$v +]', NULL)"); $a++; $v++; }
This loop will never stop unless @links is empty, so somewhere $text[$v] will be undefined - when $v exceeds the highest index number in @text (NOT @links, @links is never even used in the loop).
update: really, use strict.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I write data in SQLite
by lampros21_7 (Scribe) on Feb 03, 2006 at 23:42 UTC | |
by Joost (Canon) on Feb 03, 2006 at 23:45 UTC | |
by lampros21_7 (Scribe) on Feb 03, 2006 at 23:59 UTC |