in reply to Converting from one language to another?

Hello, and welcome to the fascinating world of perl.
You'll be pleased to know that perl has bindings to many popular databases. This means that your code doesn't even need to be converted, but can be wrapped into perl directly! Just take your SQL and swaddle it in layers of perl. There are plenty of references for working with databases in perl; here's a good starting place.
You may also, as your fascinating journey progresses, you may decide to return to perlmonks. Should you do so, you might want to think about perusing our help system, and in particular, how to craft your question for maximum impact.