update: Ack! I had a great example which was completely wrong, because it was based on a misunderstanding of the ora_fetch() command.
So now I'll simply be a voice in the chorus: consider DBI and DBD::Oracle modules rather than oraperl. The resulting code will be more portable (even if you don't care about it for this script, your skillset is enhanced by this).