# Perl 5 to Python: Still Maintained, No Deadline | gen2.dev

> Perl 5 is still maintained, with 5.44 the current stable series. Why teams move scripts to Python anyway, what breaks in regexes and modules, and how to go.

Source: https://gen2.dev/successors/perl/

---

Successor Map · Languages and runtimes

# Perl 5 to Python: Perl is maintained, so there is no deadline

Perl 5 is not end of life. Its maintainers support the two newest stable series, and 5.44 is current. Moving to Python is a choice about the team and the ecosystem, not a deadline.

![Slide: Perl 5 on the left, an arrow, and Python on the right.](https://gen2.dev/img/successor-perl.png)

Status of the old tool

Still active

Effort to move

A real project

gen2.dev's view

Move when convenient

Sources checked

2026-11-28

## Key facts

Gen 1

![Perl 5 logo](https://gen2.dev/icons/tech/perl.png)Perl 5

Gen 2

![Python logo](https://gen2.dev/icons/tech/python.png)Python

Kind of tool

[Languages and runtimes](https://gen2.dev/successors/languages/)

Status of Gen 1

Still active The perlpolicy page lists the 5.44.x series, started 2026-Jul-15, as full support (current stable), 5.42.x as full support, and 5.40.x as security fixes only, and perl.org names 5.44.0 as the latest stable version.

Effort to move

A real project: plan it and run both for a while

What breaks

Regular expressions are similar but not identical between the two languages, every CPAN module needs a Python replacement or a rewrite, and each Perl one-liner has to be rewritten by hand.

Should you move?

Move when convenient Perl's maintainers still fix critical issues in the two newest stable series and promise backward compatibility, so nothing forces the move, but a rewrite is a real project that you can schedule script by script. This is gen2.dev's view, not the maintainers'.

Sources checked

2026-11-28, [7 sources](#sources)

Perl's own maintainers have not retired it, so this is a move you pick, not one you are pushed into.

## What Gen 1 was

Perl 5 is a language with a long record. The perl.org site says it has "over 38 years of development." The perlintro page describes it as "a general-purpose programming language originally developed for text manipulation" that is now "used for a wide range of tasks including system administration, web development" and more. perl.org adds that "Perl includes powerful tools for processing text."

Its libraries come from CPAN. perl.org says "There are over 42,000 open source modules available from the Comprehensive Perl Archive Network."

It is also current. The perlpolicy support table lists 5.44.x as "Full support (current stable)", started 2026-Jul-15, and 5.42.x as full support. 5.40.x gets security fixes only, and anything older is end of life. The policy says: "To the best of our ability, we will attempt to fix critical issues in the two most recent stable 5.x release series." A new stable series is "typically produced once a year."

## What replaced it

Python, for teams that choose to move. The Perl maintainers' policy page we read says nothing about leaving. The choice is yours.

Python's `re` module "provides regular expression matching operations similar to those found in Perl." Python can also run code straight from the command line: the `-c` option executes Python code given as the command. So the small jobs Perl did well have a close match.

## What moving involves

It is a rewrite in another language, so do it a script at a time. That is the [strangler fig pattern](https://gen2.dev/guide/strangler-fig/) applied to scripts: move one job, run it beside the Perl version until the output matches, then retire the Perl one. Leave the rest alone until its turn.

Start with the scripts that are small and have a clear output, such as a report or a file converter. Leave the large CGI programs and the scripts nobody can read for later. Keep a copy of real input files and the Perl output for each script so you can compare.

## What breaks

Regular expressions are the first place. The two are similar, not the same. Python's `match()` only matches at the start of a string, while `search()` finds a match anywhere, "this is what Perl does by default." Possessive quantifiers and atomic groups only arrived in Python 3.11. In Python, `str` patterns match Unicode by default, so `\d` also matches digits from other scripts unless you set `re.ASCII`.

Python's HOWTO tells you to write patterns as raw strings, for example `r"\d+"`, because backslashes in ordinary string literals are handled before the regex sees them. Python's HOWTO also says it adds its own extension syntax, marked by a `P` after the question mark, so test every pattern that uses extensions.

CPAN is the second. Each module you use needs a Python library or your own code. Python's docs point to a third-party `regex` module on PyPI for more regex features and fuller Unicode support, but check every module one by one.

One-liners are the third. They are written for Perl's own command-line habits, so each has to be rewritten as a Python script or a `python -c` command.

## Should you move?

Move when convenient. This is gen2.dev's view, not the maintainers'.

There is no deadline. Perl 5.44 is the current stable release, the two newest series get full support, and the policy calls backward compatibility "a virtue." A working Perl script is not a risk just because it is Perl.

Move when you have a reason: a team that knows Python and not Perl, a script that needs a rewrite anyway, or a library you want that only exists for Python. Do one script at a time. If a Perl script is stable, leave it.

One thing to watch: stay on a supported series. 5.40.x gets security fixes only, and older releases are end of life, so upgrade those boxes even if you never leave Perl.

## Common questions

### Is Perl 5 dead?

No. Its maintainers have not announced an end. The perlpolicy page lists the 5.44.x series, started 2026-Jul-15, as full support (current stable), 5.42.x as full support, and 5.40.x as security fixes only, and perl.org names 5.44.0 as the latest stable version.

### What replaced Perl 5?

Python. Effort to move: A real project: plan it and run both for a while

### Should I move off Perl 5?

gen2.dev's view: Move when convenient. Perl's maintainers still fix critical issues in the two newest stable series and promise backward compatibility, so nothing forces the move, but a rewrite is a real project that you can schedule script by script.

## Sources

1.  [perlpolicy - Perl 5 Porters (perldoc)](https://perldoc.perl.org/perlpolicy) - the support table with 5.44.x, 5.42.x and 5.40.x, the commitment to fix critical issues in the two newest stable series, the security patch window, the yearly release cadence and the backward compatibility statements
2.  [Download Perl - perl.org](https://www.perl.org/get.html) - that 5.44.0 is the latest stable version named on the download page
3.  [About Perl - perl.org](https://www.perl.org/about.html) - the 38 years of development, the text processing description and the count of CPAN modules
4.  [perlintro - a brief introduction and overview of Perl (perldoc)](https://perldoc.perl.org/perlintro) - the description of Perl as a general-purpose language originally developed for text manipulation and used for system administration and web development, and that modules come from CPAN
5.  [re - Regular expression operations - Python documentation](https://docs.python.org/3/library/re.html) - that the module provides operations similar to those in Perl, the match() and search() difference, possessive quantifiers added in 3.11, the Unicode default and the third-party regex module
6.  [Regular Expression HOWTO - Python documentation](https://docs.python.org/3/howto/regex.html) - raw strings for patterns, and the Python-specific (?P...) extension syntax
7.  [Command line and environment - Python documentation](https://docs.python.org/3/using/cmdline.html) - the -c option that runs Python code given on the command line

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.

## How to do the move

The pattern that fits this kind of replacement:

[Characterization tests](https://gen2.dev/guide/characterization-tests/)

[All successor entries](https://gen2.dev/successors/)

## More in Languages and runtimes

-    [![CoffeeScript logo](https://gen2.dev/icons/tech/coffeescript.png) CoffeeScript to TypeScript Still active A real project Move when convenient](https://gen2.dev/successors/coffeescript/)
-    [![ES5 JavaScript logo](https://gen2.dev/icons/tech/es5-javascript.png) ES5 JavaScript to modern JavaScript Still active Mechanical Move when convenient](https://gen2.dev/successors/es5-javascript/)
-    [![Flow logo](https://gen2.dev/icons/tech/flow.png) Flow to TypeScript Still active A real project Move when convenient](https://gen2.dev/successors/flow/)
-    [![.NET Framework logo](https://gen2.dev/icons/tech/dotnet-framework.png) .NET Framework to .NET Maintenance only A real project Leave it](https://gen2.dev/successors/dotnet-framework/)
-    [![nvm logo](https://gen2.dev/icons/tech/nvm.png) nvm to fnm Still active Drop-in Leave it](https://gen2.dev/successors/nvm/)
-    [![PHP 8.2 and older logo](https://gen2.dev/icons/tech/php-8-2.png) PHP 8.2 and older to PHP 8.4+ Maintenance only Mechanical Move now](https://gen2.dev/successors/php-8-2/)
-    [![Windows Batch logo](https://gen2.dev/icons/tech/windows-batch.png) Windows Batch to PowerShell 7 Still active Mechanical Move when convenient](https://gen2.dev/successors/windows-batch/)

[All languages and runtimes](https://gen2.dev/successors/languages/)
