in reply to Simple perl script creates a table but no SQL results ..why?
In the first script, you've got a prepare() and a fetchrow_array(), but no execute() between them, as you have in the second script. Looks like the execute() was lost in transcription.