in reply to Sequential data read in MySQL/Perl

Show us something real. Fake up a simple database (see I know what I mean. Why don't you?) and use it to tell the story. It'd probably help if you tell us something of the bigger picture so we have a context for what you are trying to do - it's just possible there's a better way.

Premature optimization is the root of all job security