3 perlexperiment - A listing of experimental features in Perl
7 This document lists the current and past experimental features in the perl
8 core. Although all of these are documented with their appropriate topics,
9 this succinct listing gives you an overview and basic facts about their
12 So far we've merely tried to find and list the experimental features and infer
13 their inception, versions, etc. There's a lot of speculation here.
15 =head2 Current experiments
19 =item C<our> can now have an experimental optional attribute C<unique>
21 Introduced in Perl 5.8.0
23 Deprecated in Perl 5.10.0
25 The ticket for this feature is
26 L<[perl #119313]|https://rt.perl.org/rt3/Ticket/Display.html?id=119313>.
28 =item Smart match (C<~~>)
30 Introduced in Perl 5.10.0
32 Modified in Perl 5.10.1, 5.12.0
34 Using this feature triggers warnings in the category
35 C<experimental::smartmatch>.
37 The ticket for this feature is
38 L<[perl #119317]|https://rt.perl.org/rt3/Ticket/Display.html?id=119317>.
42 Introduced in Perl 5.10.0
44 Using this feature triggers warnings in the category
45 C<experimental::lexical_topic>.
47 The ticket for this feature is
48 L<[perl #119315]|https://rt.perl.org/rt3/Ticket/Display.html?id=119315>.
50 =item Pluggable keywords
52 The ticket for this feature is
53 L<[perl #119455]|https://rt.perl.org/rt3/Ticket/Display.html?id=119455>.
55 See L<perlapi/PL_keyword_plugin> for the mechanism.
57 Introduced in: Perl 5.11.2
59 =item Array and hash container functions accept references
61 Introduced in Perl 5.14.0
63 The ticket for this feature is
64 L<[perl #119437]|https://rt.perl.org/rt3/Ticket/Display.html?id=119437>.
66 =item Lexical subroutines
68 Introduced in: Perl 5.18
70 See also: L<perlsub/Lexical Subroutines>
72 Using this feature triggers warnings in the category
73 C<experimental::lexical_subs>.
75 The ticket for this feature is
76 L<[perl #120085]|https://rt.perl.org/rt3/Ticket/Display.html?id=120085>.
78 =item Regular Expression Set Operations
80 Introduced in: Perl 5.18
82 The ticket for this feature is
83 L<[perl #119451]|https://rt.perl.org/rt3/Ticket/Display.html?id=119451>.
85 See also: L<perlrecharclass/Extended Bracketed Character Classes>
87 Using this feature triggers warnings in the category
88 C<experimental::regex_sets>.
90 =item Subroutine signatures
92 Introduced in Perl 5.20.0
94 Using this feature triggers warnings in the category
95 C<experimental::signatures>.
97 The ticket for this feature is
98 L<[perl #121481]|https://rt.perl.org/Ticket/Display.html?id=121481>.
100 =item Postfix dereference syntax
102 Introduced in Perl 5.20.0
104 Using this feature triggers warnings in the category
105 C<experimental::postderef>.
107 The ticket for this feature is
108 L<[perl #120162]|https://rt.perl.org:443/rt3/Ticket/Display.html?id=120162>.
110 =item Aliasing via reference
112 Introduced in Perl 5.22.0
114 Using this feature triggers warnings in the category
115 C<experimental::refaliasing>.
117 The ticket for this feature is
118 L<[perl #122947]|https://rt.perl.org/rt3/Ticket/Display.html?id=122947>.
120 See also: L<perlref/Assigning to References>
122 =item The "const" attribute
124 Introduced in Perl 5.22.0
126 Using this feature triggers warnings in the category
127 C<experimental::const_attr>.
129 The ticket for this feature is
130 L<[perl #123630]|https://rt.perl.org/rt3/Ticket/Display.html?id=123630>.
132 See also: L<perlsub/Constant Functions>
134 =item use re 'strict';
136 Introduced in Perl 5.22.0
138 Using this feature triggers warnings in the category
139 C<experimental::re_strict>.
141 See L<re/'strict' mode>
143 =item String- and number-specific bitwise operators
145 Introduced in: Perl 5.22.0
147 See also: L<perlop/Bitwise String Operators>
149 Using this feature triggers warnings in the category
150 C<experimental::bitwise>.
152 The ticket for this feature is
153 L<[perl #123707]|https://rt.perl.org/rt3/Ticket/Display.html?id=123707>.
155 =item The <:win32> IO pseudolayer
157 The ticket for this feature is
158 L<[perl #119453]|https://rt.perl.org/rt3/Ticket/Display.html?id=119453>.
162 =item There is an C<installhtml> target in the Makefile.
164 The ticket for this feature is
165 L<[perl #116487]|https://rt.perl.org/rt3/Ticket/Display.html?id=116487>.
167 =item Unicode in Perl on EBCDIC
171 =head2 Accepted features
173 These features were so wildly successful and played so well with others that
174 we decided to remove their experimental status and admit them as full, stable
175 features in the world of Perl, lavishing all the benefits and luxuries thereof.
176 They are also awarded +5 Stability and +3 Charisma.
182 Introduced in Perl 5.005
184 =item die accepts a reference
186 Introduced in Perl 5.005
190 Introduced in Perl 5.6.0
192 See also L<perldebug>, L<perldebtut>
194 =item Weak references
196 Introduced in Perl 5.6.0
198 =item Internal file glob
200 Introduced in Perl 5.6.0
202 =item fork() emulation
204 Introduced in Perl 5.6.1
208 =item -Dusemultiplicity -Duseithreads
210 Introduced in Perl 5.6.0
212 Accepted in Perl 5.8.0
214 =item Support for long doubles
216 Introduced in Perl 5.6.0
218 Accepted in Perl 5.8.1
220 =item The C<\N> regex character class
222 The C<\N> character class, not to be confused with the named character
223 sequence C<\N{NAME}>, denotes any non-newline character in a regular
226 Introduced in Perl 5.12
228 Exact version of acceptance unclear, but no later than Perl 5.18.
230 =item C<(?{code})> and C<(??{ code })>
232 Introduced in Perl 5.6.0
234 Accepted in Perl 5.20.0
238 =item Linux abstract Unix domain sockets
240 Introduced in Perl 5.9.2
242 Accepted before Perl 5.20.0. The Socket library is now primarily maintained
243 on CPAN, rather than in the perl core.
247 =item Lvalue subroutines
249 Introduced in Perl 5.6.0
251 Accepted in Perl 5.20.0
255 =item Backtracking control verbs
259 Introduced in: Perl 5.10
261 Accepted in Perl 5.20.0
263 =item The <:pop> IO pseudolayer
267 Accepted in Perl 5.20.0
269 =item C<\s> in regexp matches vertical tab
271 Accepted in Perl 5.22.0
275 =head2 Removed features
277 These features are no longer considered experimental and their functionality
278 has disappeared. It's your own fault if you wrote production programs using
279 these features after we explicitly told you not to (see L<perlpolicy>).
283 =item 5.005-style threading
285 Introduced in Perl 5.005
291 Introduced in Perl 5.005
293 Moved from Perl 5.9.0 to CPAN
295 =item The pseudo-hash data type
297 Introduced in Perl 5.6.0
299 Removed in Perl 5.9.0
301 =item GetOpt::Long Options can now take multiple values at once (experimental)
303 C<Getopt::Long> upgraded to version 2.35
305 Removed in Perl 5.8.8
309 The C<-A> command line switch
311 Introduced in Perl 5.9.0
313 Removed in Perl 5.9.5
315 =item Test::Harness::Straps
317 Moved from Perl 5.10.1 to CPAN
321 The experimental C<legacy> pragma was swallowed by the C<feature> pragma.
323 Introduced in: 5.11.2
331 For a complete list of features check L<feature>.
335 brian d foy C<< <brian.d.foy@gmail.com> >>
337 SE<eacute>bastien Aperghis-Tramoni C<< <saper@cpan.org> >>
341 Copyright 2010, brian d foy C<< <brian.d.foy@gmail.com> >>
345 You can use and redistribute this document under the same terms as Perl