This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
8c2c8f0ffba269d03753443c2922c459413763d2
[perl5.git] / pod / perlexperiment.pod
1 =head1 NAME
2
3 perlexperiment - A listing of experimental features in Perl
4
5 =head1 DESCRIPTION
6
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
10 status.
11
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.
14
15 =head2 Current experiments
16
17 =over 8
18
19 =item Smart match (C<~~>)
20
21 Introduced in Perl 5.10.0
22
23 Modified in Perl 5.10.1, 5.12.0
24
25 Using this feature triggers warnings in the category
26 C<experimental::smartmatch>.
27
28 The ticket for this feature is
29 L<[perl #119317]|https://rt.perl.org/rt3/Ticket/Display.html?id=119317>.
30
31 =item Pluggable keywords
32
33 The ticket for this feature is
34 L<[perl #119455]|https://rt.perl.org/rt3/Ticket/Display.html?id=119455>.
35
36 See L<perlapi/PL_keyword_plugin> for the mechanism.
37
38 Introduced in Perl 5.11.2
39
40 =item Regular Expression Set Operations
41
42 Introduced in Perl 5.18
43
44 The ticket for this feature is
45 L<[perl #119451]|https://rt.perl.org/rt3/Ticket/Display.html?id=119451>.
46
47 See also: L<perlrecharclass/Extended Bracketed Character Classes>
48
49 Using this feature triggers warnings in the category
50 C<experimental::regex_sets>.
51
52 =item Subroutine signatures
53
54 Introduced in Perl 5.20.0
55
56 Using this feature triggers warnings in the category
57 C<experimental::signatures>.
58
59 The ticket for this feature is
60 L<[perl #121481]|https://rt.perl.org/Ticket/Display.html?id=121481>.
61
62 =item Aliasing via reference
63
64 Introduced in Perl 5.22.0
65
66 Using this feature triggers warnings in the category
67 C<experimental::refaliasing>.
68
69 The ticket for this feature is
70 L<[perl #122947]|https://rt.perl.org/rt3/Ticket/Display.html?id=122947>.
71
72 See also: L<perlref/Assigning to References>
73
74 =item The "const" attribute
75
76 Introduced in Perl 5.22.0
77
78 Using this feature triggers warnings in the category
79 C<experimental::const_attr>.
80
81 The ticket for this feature is
82 L<[perl #123630]|https://rt.perl.org/rt3/Ticket/Display.html?id=123630>.
83
84 See also: L<perlsub/Constant Functions>
85
86 =item use re 'strict';
87
88 Introduced in Perl 5.22.0
89
90 Using this feature triggers warnings in the category
91 C<experimental::re_strict>.
92
93 See L<re/'strict' mode>
94
95 =item The <:win32> IO pseudolayer
96
97 The ticket for this feature is
98 L<[perl #119453]|https://rt.perl.org/rt3/Ticket/Display.html?id=119453>.
99
100 See also L<perlrun>
101
102 =item Declaring a reference to a variable
103
104 Introduced in Perl 5.26.0
105
106 Using this feature triggers warnings in the category
107 C<experimental::declared_refs>.
108
109 The ticket for this feature is
110 L<[perl #128654]|https://rt.perl.org/rt3/Ticket/Display.html?id=128654>.
111
112 See also: L<perlref/Declaring a Reference to a Variable>
113
114 =item There is an C<installhtml> target in the Makefile.
115
116 The ticket for this feature is
117 L<[perl #116487]|https://rt.perl.org/rt3/Ticket/Display.html?id=116487>.
118
119 =item Unicode in Perl on EBCDIC
120
121 =item Script runs
122
123 Introduced in Perl 5.28.0
124
125 Using this feature triggers warnings in the category
126 C<experimental::script_run>.
127
128 See also: L<perlre/Script Runs>
129
130
131 =back
132
133 =head2 Accepted features
134
135 These features were so wildly successful and played so well with others that
136 we decided to remove their experimental status and admit them as full, stable
137 features in the world of Perl, lavishing all the benefits and luxuries thereof.
138 They are also awarded +5 Stability and +3 Charisma.
139
140 =over 8
141
142 =item 64-bit support
143
144 Introduced in Perl 5.005
145
146 =item die accepts a reference
147
148 Introduced in Perl 5.005
149
150 =item DB module
151
152 Introduced in Perl 5.6.0
153
154 See also L<perldebug>, L<perldebtut>
155
156 =item Weak references
157
158 Introduced in Perl 5.6.0
159
160 =item Internal file glob
161
162 Introduced in Perl 5.6.0
163
164 =item fork() emulation
165
166 Introduced in Perl 5.6.1
167
168 See also L<perlfork>
169
170 =item -Dusemultiplicity -Duseithreads
171
172 Introduced in Perl 5.6.0
173
174 Accepted in Perl 5.8.0
175
176 =item Support for long doubles
177
178 Introduced in Perl 5.6.0
179
180 Accepted in Perl 5.8.1
181
182 =item The C<\N> regex character class
183
184 The C<\N> character class, not to be confused with the named character
185 sequence C<\N{NAME}>, denotes any non-newline character in a regular
186 expression.
187
188 Introduced in Perl 5.12
189
190 Exact version of acceptance unclear, but no later than Perl 5.18.
191
192 =item C<(?{code})> and C<(??{ code })>
193
194 Introduced in Perl 5.6.0
195
196 Accepted in Perl 5.20.0
197
198 See also L<perlre>
199
200 =item Linux abstract Unix domain sockets
201
202 Introduced in Perl 5.9.2
203
204 Accepted before Perl 5.20.0.  The Socket library is now primarily maintained
205 on CPAN, rather than in the perl core.
206
207 See also L<Socket>
208
209 =item Lvalue subroutines
210
211 Introduced in Perl 5.6.0
212
213 Accepted in Perl 5.20.0
214
215 See also L<perlsub>
216
217 =item Backtracking control verbs
218
219 C<(*ACCEPT)>
220
221 Introduced in Perl 5.10
222
223 Accepted in Perl 5.20.0
224
225 =item The <:pop> IO pseudolayer
226
227 See also L<perlrun>
228
229 Accepted in Perl 5.20.0
230
231 =item C<\s> in regexp matches vertical tab
232
233 Accepted in Perl 5.22.0
234
235 =item Postfix dereference syntax
236
237 Introduced in Perl 5.20.0
238
239 Accepted in Perl 5.24.0
240
241 =item Lexical subroutines
242
243 Introduced in Perl 5.18.0
244
245 Accepted in Perl 5.26.0
246
247 =item String- and number-specific bitwise operators
248
249 Introduced in Perl 5.22.0
250
251 Accepted in Perl 5.28.0
252
253 =back
254
255 =head2 Removed features
256
257 These features are no longer considered experimental and their functionality
258 has disappeared. It's your own fault if you wrote production programs using
259 these features after we explicitly told you not to (see L<perlpolicy>).
260
261 =over 8
262
263 =item 5.005-style threading
264
265 Introduced in Perl 5.005
266
267 Removed in Perl 5.10
268
269 =item perlcc
270
271 Introduced in Perl 5.005
272
273 Moved from Perl 5.9.0 to CPAN
274
275 =item The pseudo-hash data type
276
277 Introduced in Perl 5.6.0
278
279 Removed in Perl 5.9.0
280
281 =item GetOpt::Long Options can now take multiple values at once (experimental)
282
283 C<Getopt::Long> upgraded to version 2.35
284
285 Removed in Perl 5.8.8
286
287 =item Assertions
288
289 The C<-A> command line switch
290
291 Introduced in Perl 5.9.0
292
293 Removed in Perl 5.9.5
294
295 =item Test::Harness::Straps
296
297 Moved from Perl 5.10.1 to CPAN
298
299 =item C<legacy>
300
301 The experimental C<legacy> pragma was swallowed by the C<feature> pragma.
302
303 Introduced in Perl 5.11.2
304
305 Removed in Perl 5.11.3
306
307 =item Lexical C<$_>
308
309 Using this feature triggered warnings in the category
310 C<experimental::lexical_topic>.
311
312 Introduced in Perl 5.10.0
313
314 Removed in Perl 5.24.0
315
316 =item Array and hash container functions accept references
317
318 Using this feature triggered warnings in the category
319 C<experimental::autoderef>.
320
321 Superseded by L</Postfix dereference syntax>.
322
323 Introduced in Perl 5.14.0
324
325 Removed in Perl 5.24.0
326
327 =item C<our> can have an experimental optional attribute C<unique>
328
329 Introduced in Perl 5.8.0
330
331 Deprecated in Perl 5.10.0
332
333 Removed in Perl 5.28.0
334
335 =back
336
337 =head1 SEE ALSO
338
339 For a complete list of features check L<feature>.
340
341 =head1 AUTHORS
342
343 brian d foy C<< <brian.d.foy@gmail.com> >>
344
345 SE<eacute>bastien Aperghis-Tramoni C<< <saper@cpan.org> >>
346
347 =head1 COPYRIGHT
348
349 Copyright 2010, brian d foy C<< <brian.d.foy@gmail.com> >>
350
351 =head1 LICENSE
352
353 You can use and redistribute this document under the same terms as Perl
354 itself.
355
356 =cut