in reply to Re^2: Weird uninitialized value error
in thread Weird uninitialized value error
Walk me through these two lines:
my @pages; my $column_creator = join(' INTEGER,', @pages) . ' INTEGER';
What is the join to achieve? @pages is empty so as far as I can see $column_creator can only ever be ' INTEGER' (including the leading space - which may or may not be important).
I suggest you look at the technique suggested in I know what I mean. Why don't you? for creating a CSV file to use as a database to provide data for a stand alone test snippet that reproduces the problem. I suspect that there is more here than you code shows. If we can't run it, we can't test it.
|
|---|