in reply to Reading in data that is

Okay other people seem to haveanswered the actual question. Now let me say what others seem to have refrained from: Why not use Sprite or JSprite (in DBD::Sprite), it seems you are using a flatfile database and that is exactly what these are for... Just a thought.