in reply to Need help converting!!!

Welcome to the Monastery!

Not taking away from choroba or tonto, but being a Python dev, and even though this is PerlMonks, I'd request to see what Python code you have before you ask us to write Perl code for you.

Throwing in a bit of Perl code that you've tried would be hugely helpful (and would go a long way) as well.

-stevieb