Translator (or more correctly transcriber) from Perl to Python | Linux Today

Translator (or more correctly transcriber) from Perl to Python

Written By
Web Webster
Web Webster
Sep 21, 2020

Version 0.7 now creates of the list of global variables for each subroutine to maintain the same visibility in Python as in Perl and generates global statement with the list of such variables that is inserted in each Python subroutine definition . The full protocol of translation of a reasonably complex script can be seen at

http://www.softpanorama.org/Scripting/Pythonorama/Python_for_perl_programmers/Pythonizer/protocol_of_translation_of_pre_pythonizer.shtml

It can be used as a separate program, which transforms initial Perl script into Python equivalent creating a backup with the extension .original. The result usually does not have syntax errors but, of course, semantic of complex constructs does not match.

Also can be used for understanding existing Perl code by people who know Python and were assigned to maintain some legacy Perl scripts. It explains the script in Python terms.

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.