---

Pythonizer: Translator from Perl to Python

Pythonizer translates Perl scripts into Python 3.8. It is mainly oriented on sysadmin scripts. It reorganizes Perl code pushing subroutines up and partially compensates for differences in variable visibility by generating global statement with the list of such variables that is inserted in each Python subroutine definition.

The result usually does not have syntax errors but, of course, semantic of some complex constructs does not match and 10 to 20% of statements require manual editing.

Also can be used for understanding existing Perl code by people who know Python and were assigned to maintain some legacy Perl scripts.