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 See L<perlapi/PL_keyword_plugin> for the mechanism.
54 Introduced in: Perl 5.11.2
56 =item Array and hash container functions accept references
58 Introduced in Perl 5.14.0
60 The ticket for this feature is
61 L<[perl #119437]|https://rt.perl.org/rt3/Ticket/Display.html?id=119437>.
63 =item Lexical subroutines
65 Introduced in: Perl 5.18
67 See also: L<perlsub/Lexical Subroutines>
69 Using this feature triggers warnings in the category
70 C<experimental::lexical_subs>.
72 =item Regular Expression Set Operations
74 Introduced in: Perl 5.18
76 See also: L<perlrecharclass/Extended Bracketed Character Classes>
78 Using this feature triggers warnings in the category
79 C<experimental::regex_sets>.
81 =item C<\s> in regexp matches vertical tab
83 Introduced in Perl 5.18
85 =item The <:win32> IO pseudolayer
89 =item There is an C<installhtml> target in the Makefile.
91 The ticket for this feature is
92 L<[perl #116487]|https://rt.perl.org/rt3/Ticket/Display.html?id=116487>.
94 =item Unicode in Perl on EBCDIC
96 See also: L<perlre/"Special Backtracking Control Verbs">
100 =head2 Accepted features
102 These features were so wildly successful and played so well with others that
103 we decided to remove their experimental status and admit them as full, stable
104 features in the world of Perl, lavishing all the benefits and luxuries thereof.
105 They are also awarded +5 Stability and +3 Charisma.
111 Introduced in Perl 5.005
113 =item die accepts a reference
115 Introduced in Perl 5.005
119 Introduced in Perl 5.6.0
121 See also L<perldebug>, L<perldebtut>
123 =item Weak references
125 Introduced in Perl 5.6.0
127 =item Internal file glob
129 Introduced in Perl 5.6.0
131 =item fork() emulation
133 Introduced in Perl 5.6.1
137 =item -Dusemultiplicity -Duseithreads
139 Introduced in Perl 5.6.0
141 Accepted in Perl 5.8.0
143 =item Support for long doubles
145 Introduced in Perl 5.6.0
147 Accepted in Perl 5.8.1
149 =item The C<\N> regex character class
151 The C<\N> character class, not to be confused with the named character
152 sequence C<\N{NAME}>, denotes any non-newline character in a regular
155 Introduced in Perl 5.12
157 Exact version of acceptance unclear, but no later than Perl 5.18.
159 =item C<(?{code})> and C<(??{ code })>
161 Introduced in Perl 5.6.0
163 Accepted in Perl 5.20.0
167 =item Linux abstract Unix domain sockets
169 Introduced in Perl 5.9.2
171 Accepted before Perl 5.20.0. The Socket library is now primarily maintained
172 on CPAN, rather than in the perl core.
176 =item Lvalue subroutines
178 Introduced in Perl 5.6.0
180 Accepted in Perl 5.20.0
184 =item Backtracking control verbs
188 Introduced in: Perl 5.10
190 Accepted in Perl 5.20.0
192 =item The <:pop> IO pseudolayer
196 Accepted in Perl 5.20.0
200 =head2 Removed features
202 These features are no longer considered experimental and their functionality
203 has disappeared. It's your own fault if you wrote production programs using
204 these features after we explicitly told you not to (see L<perlpolicy>).
208 =item 5.005-style threading
210 Introduced in Perl 5.005
216 Introduced in Perl 5.005
218 Moved from Perl 5.9.0 to CPAN
220 =item The pseudo-hash data type
222 Introduced in Perl 5.6.0
224 Removed in Perl 5.9.0
226 =item GetOpt::Long Options can now take multiple values at once (experimental)
228 C<Getopt::Long> upgraded to version 2.35
230 Removed in Perl 5.8.8
234 The C<-A> command line switch
236 Introduced in Perl 5.9.0
238 Removed in Perl 5.9.5
240 =item Test::Harness::Straps
242 Moved from Perl 5.10.1 to CPAN
246 The experimental C<legacy> pragma was swallowed by the C<feature> pragma.
248 Introduced in: 5.11.2
256 brian d foy C<< <brian.d.foy@gmail.com> >>
258 SE<eacute>bastien Aperghis-Tramoni C<< <saper@cpan.org> >>
262 Copyright 2010, brian d foy C<< <brian.d.foy@gmail.com> >>
266 You can use and redistribute this document under the same terms as Perl