This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Prepare Module::CoreList for 5.19.4 and bump its $VERSION
[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 C<our> can now have an experimental optional attribute C<unique>
20
21 Introduced in Perl 5.8.0
22
23 Deprecated in Perl 5.10.0
24
25 The ticket for this feature is
26 L<[perl #119313]|https://rt.perl.org/rt3/Ticket/Display.html?id=119313>.
27
28 =item Smart match (C<~~>)
29
30 Introduced in Perl 5.10.0
31
32 Modified in Perl 5.10.1, 5.12.0
33
34 Using this feature triggers warnings in the category
35 C<experimental::smartmatch>.
36
37 The ticket for this feature is
38 L<[perl #119317]|https://rt.perl.org/rt3/Ticket/Display.html?id=119317>.
39
40 =item Lexical C<$_>
41
42 Introduced in Perl 5.10.0
43
44 Using this feature triggers warnings in the category
45 C<experimental::lexical_topic>.
46
47 The ticket for this feature is
48 L<[perl #119315]|https://rt.perl.org/rt3/Ticket/Display.html?id=119315>.
49
50 =item Pluggable keywords
51
52 See L<perlapi/PL_keyword_plugin> for the mechanism.
53
54 Introduced in: Perl 5.11.2
55
56 =item Array and hash container functions accept references
57
58 Introduced in Perl 5.14.0
59
60 =item Lexical subroutines
61
62 Introduced in: Perl 5.18
63
64 See also: L<perlsub/Lexical Subroutines>
65
66 Using this feature triggers warnings in the category
67 C<experimental::lexical_subs>.
68
69 =item Regular Expression Set Operations
70
71 Introduced in: Perl 5.18
72
73 See also: L<perlrecharclass/Extended Bracketed Character Classes>
74
75 Using this feature triggers warnings in the category
76 C<experimental::regex_sets>.
77
78 =item C<\s> in regexp matches vertical tab
79
80 Introduced in Perl 5.18
81
82 =item The <:win32> IO pseudolayer
83
84 See also L<perlrun>
85
86 =item There is an C<installhtml> target in the Makefile.
87
88 The ticket for this feature is
89 L<[perl #116487]|https://rt.perl.org/rt3/Ticket/Display.html?id=116487>.
90
91 =item Unicode in Perl on EBCDIC
92
93 See also: L<perlre/"Special Backtracking Control Verbs">
94
95 =back
96
97 =head2 Accepted features
98
99 These features were so wildly successful and played so well with others that
100 we decided to remove their experimental status and admit them as full, stable
101 features in the world of Perl, lavishing all the benefits and luxuries thereof.
102 They are also awarded +5 Stability and +3 Charisma.
103
104 =over 8
105
106 =item 64-bit support
107
108 Introduced in Perl 5.005
109
110 =item die accepts a reference
111
112 Introduced in Perl 5.005
113
114 =item DB module
115
116 Introduced in Perl 5.6.0
117
118 See also L<perldebug>, L<perldebtut>
119
120 =item Weak references
121
122 Introduced in Perl 5.6.0
123
124 =item Internal file glob
125
126 Introduced in Perl 5.6.0
127
128 =item fork() emulation
129
130 Introduced in Perl 5.6.1
131
132 See also L<perlfork>
133
134 =item -Dusemultiplicity -Duseithreads
135
136 Introduced in Perl 5.6.0
137
138 Accepted in Perl 5.8.0
139
140 =item Support for long doubles
141
142 Introduced in Perl 5.6.0
143
144 Accepted in Perl 5.8.1
145
146 =item The C<\N> regex character class
147
148 The C<\N> character class, not to be confused with the named character
149 sequence C<\N{NAME}>, denotes any non-newline character in a regular
150 expression.
151
152 Introduced in Perl 5.12
153
154 Exact version of acceptance unclear, but no later than Perl 5.18.
155
156 =item C<(?{code})> and C<(??{ code })>
157
158 Introduced in Perl 5.6.0
159
160 Accepted in Perl 5.20.0
161
162 See also L<perlre>
163
164 =item Linux abstract Unix domain sockets
165
166 Introduced in Perl 5.9.2
167
168 Accepted before Perl 5.20.0.  The Socket library is now primarily maintained
169 on CPAN, rather than in the perl core.
170
171 See also L<Socket>
172
173 =item Lvalue subroutines
174
175 Introduced in Perl 5.6.0
176
177 Accepted in Perl 5.20.0
178
179 See also L<perlsub>
180
181 =item Backtracking control verbs
182
183 C<(*ACCEPT)>
184
185 Introduced in: Perl 5.10
186
187 Accepted in Perl 5.20.0
188
189 =item The <:pop> IO pseudolayer
190
191 See also L<perlrun>
192
193 Accepted in Perl 5.20.0
194
195 =back
196
197 =head2 Removed features
198
199 These features are no longer considered experimental and their functionality
200 has disappeared. It's your own fault if you wrote production programs using
201 these features after we explicitly told you not to (see L<perlpolicy>).
202
203 =over 8
204
205 =item 5.005-style threading
206
207 Introduced in Perl 5.005
208
209 Removed in Perl 5.10
210
211 =item perlcc
212
213 Introduced in Perl 5.005
214
215 Moved from Perl 5.9.0 to CPAN
216
217 =item The pseudo-hash data type
218
219 Introduced in Perl 5.6.0
220
221 Removed in Perl 5.9.0
222
223 =item GetOpt::Long Options can now take multiple values at once (experimental)
224
225 C<Getopt::Long> upgraded to version 2.35
226
227 Removed in Perl 5.8.8
228
229 =item Assertions
230
231 The C<-A> command line switch
232
233 Introduced in Perl 5.9.0
234
235 Removed in Perl 5.9.5
236
237 =item Test::Harness::Straps
238
239 Moved from Perl 5.10.1 to CPAN
240
241 =item C<legacy>
242
243 The experimental C<legacy> pragma was swallowed by the C<feature> pragma.
244
245 Introduced in: 5.11.2
246
247 Removed in: 5.11.3
248
249 =back
250
251 =head1 AUTHORS
252
253 brian d foy C<< <brian.d.foy@gmail.com> >>
254
255 SE<eacute>bastien Aperghis-Tramoni C<< <saper@cpan.org> >>
256
257 =head1 COPYRIGHT
258
259 Copyright 2010, brian d foy C<< <brian.d.foy@gmail.com> >>
260
261 =head1 LICENSE
262
263 You can use and redistribute this document under the same terms as Perl
264 itself.
265
266 =cut