PERLEXPERIMENT(1perl)

πŸ“¦
version 5.44.0 Β· 2 versions
, in arch rolling

πŸ’– NAME πŸ’–

So bestie, you're looking at PERLEXPERIMENT(1perl) from the Perl Programmers Reference Guide. It's perlexperiment β€” a whole listing of the experimental features kickin' it in the perl core. πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the vibe: this doc lists every current and past experimental feature in the perl core. Yeah, they're all documented properly in their own spots, but this is the succinct lil' overview that gives you the facts about their status at a glance.

Fr fr, so far we've just tried to find and list the experimental features and infer their inception, versions, etc. There's a lot of speculation here. πŸ™ˆ We're doing our best.


πŸ”₯ Current experiments πŸ”₯

Pluggable keywords

Aliasing via reference

  • Introduced in Perl 5.22.0
  • Using this feature triggers warnings in the category "experimental::refaliasing".
  • The ticket for this experiment is [perl #14150] β€” https://github.com/Perl/perl5/issues/14150.
  • See also: "Assigning to References" in perlref.

use re 'strict';

  • Introduced in Perl 5.22.0
  • Using this feature triggers warnings in the category "experimental::re_strict".
  • The ticket for this experiment is [perl #18755] β€” https://github.com/Perl/perl5/issues/18755
  • See "'strict' mode" in re.

Declaring a reference to a variable

  • Introduced in Perl 5.26.0
  • Using this feature triggers warnings in the category "experimental::declared_refs".
  • The ticket for this experiment is [perl #15458] β€” https://github.com/Perl/perl5/issues/15458.
  • See also: "Declaring a Reference to a Variable" in perlref.

There is an "installhtml" target in the Makefile.

(Limited) Variable-length look-behind

  • Introduced in Perl 5.30.0.
  • Variability of up to 255 characters is handled.
  • Using this feature triggers warnings in the category "experimental::vlb".
  • The ticket for this experiment is [perl #18756] β€” https://github.com/Perl/perl5/issues/18756.
  • See also: "(*positive_lookbehind:pattern)" in perlre and "(*negative_lookbehind:pattern)" in perlre.

Unicode private use character hooks

  • Introduced in Perl 5.30.0.
  • This feature is part of an interface intended for internal and experimental use by the perl5 developers. You are unlikely to encounter it in the wild. πŸ‘€
  • Using this feature triggers warnings in the category "experimental::private_use".
  • The ticket for this experiment is [perl #18758] β€” https://github.com/Perl/perl5/issues/18758.

Unicode property wildcards

  • Introduced in Perl 5.30.0.
  • This feature allows regular expression matching against Unicode character properties to be expressed more concisely.
  • Using this feature triggers warnings in the category "experimental::uniprop_wildcards".
  • The ticket for this experiment is [perl #18759] β€” https://github.com/Perl/perl5/issues/18759.

try/catch control structure

  • Introduced in Perl 5.34.0.
  • Using the optional "finally" block part of this feature triggers warnings in the category "experimental::try".
  • The ticket for this experiment is [perl #18760] β€” https://github.com/Perl/perl5/issues/18760

Use of @_ within subroutine signatures

  • Introduced in Perl 5.36.0 as part of a reduction in the scope of experimental subroutine signatures.
  • Using the default arguments array (@_) within a subroutine that uses signatures will emit a warning in the category "experimental::args_array_with_signatures". This includes @_ directly, elements of it such as $_[$index], or situations where the default arguments array is accessed implicitly such as "shift" or "pop" without arguments.

The builtin namespace

  • Introduced in Perl 5.36.0.
  • Using certain functions of this feature triggers warnings in the category "experimental::builtin".
  • In Perl 5.36.0, a new namespace, "builtin", was created for new core functions that will not be present in every namespace, but will be available for importing. The namespace itself was considered experimental until Perl 5.39.2. Some specific functions within it remain experimental.
  • The ticket for this experiment is [perl #19764] β€” https://github.com/Perl/perl5/issues/19764.

The defer block modifier

  • Introduced in Perl 5.36.0
  • Using this feature triggers warnings in the category "experimental::defer".
  • This feature adds a new kind of block, a "defer" block, which will not be executed until the containing block is being exited.
  • The ticket for this experiment is [perl #17949] β€” https://github.com/Perl/perl5/issues/17949.

Extra paired delimiters for quote-like operators

  • Introduced in Perl 5.36.0
  • Using this feature triggers warnings in the category "experimental::extra_paired_delimiters".
  • This feature allows for many non-ASCII pairs of mirroring delimiters, for example:
my @array = qwΒ« tinker tailor soldier spy Β»;

New object system and "class" syntax

  • Introduced in Perl 5.37.9.
  • Using this feature triggers warnings in the category "experimental::class".
  • This feature enables the new object system and its associated keywords "class", "field", "method". πŸ‘‘ main character energy fr
  • The ticket for this experiment is [perl #22139] β€” https://github.com/Perl/perl5/issues/22139.

"any" and "all" list processing operators

  • Introduced in Perl 5.41.7.
  • Using these features triggers warnings in the categories "experimental::keyword_any" or "experimental::keyword_all".
  • This adds new list processing operators named "any" and "all", each as their own named feature.
  • The ticket for this experiment is [perl #22794] β€” https://github.com/Perl/perl5/issues/22794.

Named parameters in subroutine signatures

  • Introduced in Perl 5.43.5.
  • Using this feature triggers warnings in the category "experimental::signature_named_parameters".
  • This feature enables parameters in subroutine signatures that are matched by name rather than by position, and is documented in "Signatures" in perlsub.
  • The ticket for this experiment is [perl #23945] β€” https://github.com/Perl/perl5/issues/23945.

Enhanced "/xx" modifier in regular expression pattern matching

  • Introduced in Perl 5.43.8.
  • Using this feature triggers warnings in the category "experimental::enhanced_xx".
  • This feature enables bracketed character classes to be split across multiple lines, and to contain comments, and adds warnings if it appears a "#" is interpreted as beginning a comment when it was meant to be taken as a literal character.
  • The ticket for this experiment is [perl #23945] β€” https://github.com/Perl/perl5/issues/24209.

πŸ† Accepted features πŸ†

These features were so wildly successful and played so well with others that we decided to remove their experimental status and admit them as full, stable features in the world of Perl, lavishing all the benefits and luxuries thereof. They are also awarded +5 Stability and +3 Charisma. πŸ’… iconic behavior, honestly.

64-bit support

  • Introduced in Perl 5.005

die accepts a reference

  • Introduced in Perl 5.005

DB module

  • Introduced in Perl 5.6.0
  • See also perldebug, perldebtut

Weak references

  • Introduced in Perl 5.6.0

Internal file glob

  • Introduced in Perl 5.6.0

fork() emulation

  • Introduced in Perl 5.6.1
  • See also perlfork

-Dusemultiplicity -Duseithreads

  • Introduced in Perl 5.6.0
  • Accepted in Perl 5.8.0

Support for long doubles

  • Introduced in Perl 5.6.0
  • Accepted in Perl 5.8.1

The "\N" regex character class

  • The "\N" character class β€” not to be confused with the named character sequence "\N{NAME}" β€” denotes any non-newline character in a regular expression. ✨
  • Introduced in Perl 5.12
  • Exact version of acceptance unclear, but no later than Perl 5.18.

"(?{code})" and "(??{ code })"

  • Introduced in Perl 5.6.0
  • Accepted in Perl 5.20.0
  • See also perlre

Linux abstract Unix domain sockets

  • Introduced in Perl 5.9.2
  • Accepted before Perl 5.20.0. The Socket library is now primarily maintained on CPAN, rather than in the perl core.
  • See also Socket

Lvalue subroutines

  • Introduced in Perl 5.6.0
  • Accepted in Perl 5.20.0
  • See also perlsub

Backtracking control verbs "(*ACCEPT)"

  • Introduced in Perl 5.10
  • Accepted in Perl 5.20.0

The ":pop" IO pseudolayer

  • See also "PERLIO" in perlrun
  • Accepted in Perl 5.20.0

"\s" in regexp matches vertical tab

  • Accepted in Perl 5.22.0

Postfix dereference syntax

  • Introduced in Perl 5.20.0
  • Accepted in Perl 5.24.0

Lexical subroutines

  • Introduced in Perl 5.18.0
  • Accepted in Perl 5.26.0

String- and number-specific bitwise operators

  • Introduced in Perl 5.22.0
  • Accepted in Perl 5.28.0

Alphabetic assertions

  • Introduced in Perl 5.28.0
  • Accepted in Perl 5.32.0

Script runs

  • Introduced in Perl 5.28.0
  • Accepted in Perl 5.32.0

The infix "isa" operator

  • Introduced in Perl 5.32.0
  • Accepted in Perl 5.36.0

Subroutine signatures

  • Introduced in Perl 5.20.0
  • Accepted in Perl 5.36.0

Regular Expression Set Operations

  • Introduced in Perl 5.18
  • Accepted in Perl 5.36
  • See : "Extended Bracketed Character Classes" in perlrecharclass

try/catch control structure

  • Introduced in Perl 5.34.0.
  • Accepted in Perl 5.40 when not using the optional "finally" block.

The "const" attribute

  • Introduced in Perl 5.22.0

and bestie… we are NOT done, there's more coming, stay with me πŸ’–

Accepted in Perl 5.40 βœ… β€” yeah bestie, that one's official now, no cap.

See also: "Constant Functions" in perlsub πŸ“Ž (go read it, it's giving lore).

for loop with multiple iteration variables

Introduced in Perl 5.36.0 🌱

Accepted in Perl 5.40 πŸ‘‘

This feature lets you do a parenthesized list of iteration variables for for instead of being stuck with a single variable. Multiple main characters in one loop, and honestly? ate. πŸ’…


Removed features

Okay so these ones are no longer considered experimental β€” and their functionality has literally disappeared πŸ’€. And the docs are blunt about it: it's your own fault if you wrote production programs using these features after they explicitly told you not to (see perlpolicy). They warned you, bestie 😭

5.005-style threading

  • Introduced in Perl 5.005
  • Removed in Perl 5.10

perlcc

  • Introduced in Perl 5.005
  • Moved from Perl 5.9.0 to CPAN

The pseudo-hash data type

  • Introduced in Perl 5.6.0
  • Removed in Perl 5.9.0

GetOpt::Long Options can now take multiple values at once (experimental)

  • Getopt::Long upgraded to version 2.35
  • Removed in Perl 5.8.8

Assertions

  • The -A command line switch
  • Introduced in Perl 5.9.0
  • Removed in Perl 5.9.5

Test::Harness::Straps

  • Moved from Perl 5.10.1 to CPAN

"legacy"

  • The experimental legacy pragma was swallowed by the feature pragma.
  • Introduced in Perl 5.11.2
  • Removed in Perl 5.11.3

Lexical $_

  • Using this feature triggered warnings in the category experimental::lexical_topic.
  • Introduced in Perl 5.10.0
  • Removed in Perl 5.24.0

Array and hash container functions accept references

  • Using this feature triggered warnings in the category experimental::autoderef.
  • Superseded by Postfix dereference syntax.
  • Introduced in Perl 5.14.0
  • Removed in Perl 5.24.0

"our" can have an experimental optional attribute "unique"

  • Introduced in Perl 5.8.0
  • Deprecated in Perl 5.10.0
  • Removed in Perl 5.28.0

The ":win32" IO pseudolayer

  • Introduced in Perl 5.8.0 (or before)
  • Removed in Perl 5.36.0

Features abandoned in place

So these are experiments that got considered failures, but because of mass use they've just been left sitting there. Like, they're not getting a glow-up, they're just… still in the building 🫠

The switch and smartmatch features are likely to be the only ones which will ever fall into this category. They were introduced before we had a well-defined experimental feature process.

These are unlikely to be updated with behavioural changes. Periodt.

Smart match ("~~")

  • Introduced in Perl 5.10.0
  • Modified in Perl 5.10.1, 5.12.0
  • Deprecated in 5.38.0
  • Scheduled for removal in 5.42.0, but this was reversed.
  • Enabled by default, and in all feature bundles up to 5.40, disabled by default in feature bundle 5.42, but can be enabled with use feature "smartmatch".
  • The ticket for this experiment is [perl #13173] β€” https://github.com/Perl/perl5/issues/13173.

Switch (given/when)

  • Introduced in Perl 5.10.0
  • Deprecated in 5.38.0
  • Scheduled for removal in 5.42.0, but this was reversed.
  • Enabled by feature bundles 5.10 through 5.34, but can be enabled with use feature "switch".
  • The ticket for this experiment is [perl #13173] β€” https://github.com/Perl/perl5/issues/13173.

SEE ALSO ✨

For a complete list of features check feature. That's the whole vibe check right there πŸ”

AUTHORS 🫢

  • brian d foy <briandfoy@pobox.com>
  • SΓ©bastien Aperghis-Tramoni <saper@cpan.org>

Copyright 2010, brian d foy <briandfoy@pobox.com>

LICENSE

You can use and redistribute this document under the same terms as Perl itself. Slay, share away πŸ’–


and that's the whole page, bestie!! πŸŒˆπŸŽ€ this is perl v5.44.0, dated 2026-10-17 β€” go forth and use your experimental features responsibly (or, y'know, don't, but then it's your own fault 😌) πŸ’…βœ¨

πŸ“¦ where this page comes from
  • arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms