Perl 5 version history


Perl is an open-source programming language whose first version, 1.0, was released in 1987. The following table contains the Perl 5 version history, showing its release versions. Not all versions are covered yet.
Note that additional minor release versions may not be shown in this chart, unless they include notable changes or are the latest supported version. Additional information can be found on .

Version history

Release numbers use semantic versioning since 5.6, where even-numbered minor versions are stable releases, and odd numbers are experimental development versions. The patch number is usually omitted in discussions of Perl versions.
The is to "support the two most recent stable release series" although important security fixes may be applied to stable releases from the past three years.
Note that this is separate from the Perl Toolchain Support Policies, which will informally support older releases. The is to support Perl v5.16 or earlier until July 2024, and then to support releases than have been available for at least ten years.
VersionRelease dateLinksChanges
5.42.0July 3, 2025
  • New :writer attribute on field variables
  • Lexical method declaration using my method and invocation using operator ->&
  • New any and all operators
  • New pragma source::encoding
  • Assigning logical xor ^^= operator
  • More CORE:: subs
  • Switch and Smart Match operator kept, behind a feature
  • Apostrophe as a global name separator can be disabled
  • Support Unicode 16.0
  • Security fixes and performance enhancements
5.40.3August 3, 2025
  • Security fixes
  • 5.40.2April 13, 2025
  • Security fixes
  • 5.40.0June 9, 2024
  • New __CLASS__ keyword
  • Added the :reader attribute for field variables
  • Added builtin inf and nan functions
  • New logical ^^ xor medium-precedence operator
  • The try/catch feature is no longer experimental
  • Security fixes
  • 5.38.4April 13, 2025
  • Security fixes
  • 5.38.2November 29, 2023
  • Security fixes
  • Note: 5.38.1 was withdrawn due to a broken release
  • 5.38.0July 3, 2023
  • New feature
  • Unicode 15
  • Deprecation warnings now have specific subcategories
  • API hooks
  • Ability to set a consistent random seed
  • Defined-or and logical-or assignment default expressions in subroutine signatures
  • Regex quantifiers limit increased to I32_MAX
  • Use of single-quote as a package separator deprecated
  • Performance enhancements
  • Flow-control improvements to defer and finally blocks
  • The Switch and Smart Match added in v5.10 are deprecated
  • 5.36.3November 29, 2023
  • Security fixes
  • Note: 5.36.2 was withdrawn due to a broken release
  • 5.36.1April 23, 2023
  • Bug fixes
  • 5.36.0May 28, 2022isa operator no longer considered experimental
  • Unicode 14
  • Regex sets no longer considered experimental
  • Variable length lookbehind in regexes no longer considered experimental
  • Boolean tracking
  • New functions
  • Subroutine signatures no longer considered experimental
  • Added `defer` blocks
  • Experimental try/catch with finally blocks
  • Experimental n-at-a-time for iterators
  • 5.34.3November 29, 2023
  • Security fixes
  • Note: 5.34.2 was withdrawn due to a broken release
  • 5.34.1March 13, 2022
  • Bug fixes
  • 5.34.0May 20, 2021
  • Experimental try/catch syntax
  • Empty lower bound in regular expression quantifiers
  • New octal syntax with 0o prefixes
  • 5.32.1January 23, 2021
  • New documentation perlgov and perlsecpolicy
  • 5.32.0June 20, 2020
  • Experimental isa operator
  • Chained comparisons
  • Unicode 13.0 is supported
  • Numeric variables .
  • 5.30.3June 1, 2020
  • Security fixes
  • 5.30.2March 14, 2020
  • Bug fixes and module updates
  • 5.30.1November 10, 2019
  • Bug fixes and module updates
  • 5.30.0May 22, 2019
  • Unicode 12.1 support
  • Variable length lookbehind in regular expression patterns
  • 5.28.0June 22, 2018
  • Unicode 10.0 is supported
  • delete on key/value hash slices
  • alphabetic synonyms for some regular expression assertions
  • Mixed Unicode scripts are now detectable
  • In-place editing with perl -i is now safer
  • Initialisation of aggregate state variables
  • Full-size inode numbers
  • The sprintf %j format size modifier is now available with pre-C99 compilers
  • Close-on-exec flag set atomically
  • String- and number-specific bitwise ops are no longer experimental
  • Locales are now thread-safe on systems that support them
  • New read-only predefined variable $
  • Security fixes
  • Subroutine attribute and signature order was flipped to the original order from v5.20
  • The sort algorithm can no longer be changed. The sort pragma is a no-op.
  • 5.26.0May 30, 2017
  • For security reasons, the current directory is no longer included by default at the end of the module search path
  • Lexical subroutines are no longer experimental
  • Indented Here-documents
  • New regular expression modifiers and capture groups
  • Unicode 9.0 is now supported
  • Perl can now do default collation in UTF-8 locales on platforms that support it
  • 5.24.0May 8, 2016
  • Unicode 8.0 is now supported.
  • New line break boundary in regular expressions
  • Extended Bracketed Character Classes work in UTF-8 locales
  • More explicit definitions for integer shifting
  • Reordered precision arguments for printf and sprintf
  • More fields provided to sigaction callback
  • The experimental autoderef feature was removed.
  • Postfix dereferencing is no longer experimental.
  • 5.22.0June 1, 2015
  • Unicode 7.0 is now supported.
  • The historical modules CGI.pm and Module::Build were removed from the core distribution.
  • The double diamond operator
  • Disambiguated bitwise operators
  • Variable aliasing
  • Subroutine attribute and signature order was flipped, but this was flipped back in v5.28
  • 5.20.0May 27, 2014
  • Subroutine signatures
  • Postfix dereferencing
  • Key/value slice syntax
  • 5.18.0May 18, 2013
  • regular expression character set operations
  • lexical subroutines
  • 5.16.0May 20, 2012__SUB__ for currently-executing subroutine
  • encoding-disambiguated evalfc function
  • 5.14.0May 14, 2011
  • Unicode 6.0 is supported
  • Unicode semantics applied to all strings
  • Non-destructive substitution
  • Added /d, /l, /u and /a regular expression modifiers
  • Re-entrant regular expressions
  • Automatic dereference by built-ins
  • 5.12.0April 12, 2010
  • Unicode 5.2 is supported
  • New package NAME VERSION syntax
  • The ... operator added
  • Implicit strictures with use 5.12.0
  • Year 2038 compliance
  • 5.10.1August 23, 2009
  • Incompatible changes to the range operators and defined-or in boolean context, which affects the new switch feature
  • Incompatible changes to the smart match operator
  • Unicode 5.1.0 is supported
  • A new interface for pluggable Method Resolution Orders
  • A new overloading pragma
  • Parallel tests
  • DTrace support
  • Bug fixes and module updatessetuidperl deprecated
  • 5.10.0December 18, 2007
  • Unicode 5.0 is supported
  • New feature pragma
  • New defined-or operator
  • New switch feature and related smart match operator
  • Numerous new regular expression features
  • New say built-in
  • Ability to declare static variables with state
  • 5.8.1September 25, 2003
  • Improved randomization of hash order, for security reasons.
  • Unicode is not enabled by default based on locale settings.
  • Version strings on the left of a fat comma are treated as string literals.
  • Unsafe signals were re-added.
  • Improved tied arrays with negative indexes
  • Supports Unicode 4.0.0
  • Pseudo-hashes are deprecated
  • Old-style threads are deprecated.
  • Various module upgrades.
  • The `strict` pragma checks parameters.
  • Documentation improvements.
  • Bug fixes.
  • 5.8.0July 18, 2002
  • Supports Unicode 3.2.0
  • Regular expressions now work with Unicode
  • Support for non-Latin encodings via Encode module
  • Introduction of interpreter threads
  • New PerlIO implementation
  • Scalars can be used as file handles
  • Improved numeric accuracy for string-number conversion via built-in routine
  • Finalized 64-bit support
  • New sort pragma to change the sort algorithm.
  • New modules: Digest::MD5, File::Temp, Filter::Simple, libnet, List::Util, Memoize, MIME::Base64, Scalar::Util, Storable, Switch, Test::More, Test::Simple, Text::Balanced, Tie::File, etc.
  • Incompatibilities:
  • Version numbering changed to 'revision.version.subversion' format
  • Internal representation for strings is changed to UTF-8, with EBCDIC support discontinued.
  • Better support for interpreter concurrency.
  • String literals can be written using character ordinals.
  • New syntax for subroutine attributes.
  • Support for large files, where available.
  • Support for binary numbers.
  • JPL distribution comes bundled with Perl.
  • Much new documentation in the form of tutorials and reference information has been added.
  • Experimental features:
  • 5.005 is not binary compatible with previous releases.
  • Source code now in ANSI C.
  • New supported platforms include BeOS, DOS, MPE/ix.
  • EXPR foreach EXPR syntax is supported.
  • Experimental features:
  • 5.003_1July 31, 1996
  • 5.003June 25, 1996
  • Security fixes
  • Bug fixes
  • 5.002_1March 25, 1996
  • EMBED namespace changes are now used by default
  • Fixed several bugs in the core
  • Added two new magic variables: $^E and $^O
  • A mechanism was added to allow listing of locally applied patches in the perl -v output
  • Miscellaneous minor corrections and updates were made to the documentation
  • Extensive updates made to the OS/2 and VMS ports
  • Other miscellaneous changes and bug fixes
  • 5.002February 29, 1996
  • Added a new feature: Prototypes
  • Extensive upgrades to nearly all of Perl's modules
  • Massive changes to both the configure and build systems
  • Bug fixes
  • 5.001March 13, 1995
  • Added two new hooks: $SIG and $SIG
  • Added closures
  • Now counts imported routines as "defined" for redef warnings
  • Bug fixes
  • 5.000October 17, 1994
  • Near complete rewrite of the interpreter
  • Added Objects
  • Added References
  • Added lexical (my) variables
  • Added modules which allow extending the language without modifying the interpreter
  • 4.000March 21, 1991
    3.000October 18, 1989
    2.000June 5, 1988
    1.000December 18, 1987