Add to perlexperiment; note that an alternative syntax has been
proposed; nits.
use strict;
use warnings;
use strict;
use warnings;
our @ISA = qw(Exporter);
our @EXPORT_OK = ('regmust',
qw(is_regexp regexp_pattern
our @ISA = qw(Exporter);
our @EXPORT_OK = ('regmust',
qw(is_regexp regexp_pattern
+Note that this is an experimental feature which may be changed or removed in a
+future Perl release.
+
When C<use re 'strict'> is in effect, stricter checks are applied than
otherwise when compiling regular expressions patterns. These may cause more
warnings to be raised than otherwise, and more things to be fatal instead of
When C<use re 'strict'> is in effect, stricter checks are applied than
otherwise when compiling regular expressions patterns. These may cause more
warnings to be raised than otherwise, and more things to be fatal instead of
programmer's actual intent. This automatically turns on the C<"regexp">
warnings category (if not already on) within its scope.
programmer's actual intent. This automatically turns on the C<"regexp">
warnings category (if not already on) within its scope.
-As an example of something that is caught under C<"strict'> but not otherwise
-is the pattern
+As an example of something that is caught under C<"strict'>, but not
+otherwise, is the pattern
It is expected that what exactly C<'strict'> does will evolve over time as we
gain experience with it. This means that programs that compile under it in
today's Perl may not compile, or may have more or fewer warnings, in future
It is expected that what exactly C<'strict'> does will evolve over time as we
gain experience with it. This means that programs that compile under it in
today's Perl may not compile, or may have more or fewer warnings, in future
-Perls. There is no backwards compatibility promises with regards to it. For
-this reason, using it will raise a C<experimental::re_strict> class warning,
+Perls. There is no backwards compatibility promises with regards to it. Also
+there are already proposals for an alternate syntax for enabling it. For
+these reasons, using it will raise a C<experimental::re_strict> class warning,
unless that category is turned off.
Note that if a pattern compiled within C<'strict'> is recompiled, say by
unless that category is turned off.
Note that if a pattern compiled within C<'strict'> is recompiled, say by
See also: L<perlsub/Constant Functions>
See also: L<perlsub/Constant Functions>
+=item use re 'strict';
+
+Introduced in Perl 5.22.0
+
+Using this feature triggers warnings in the category
+C<experimental::re_strict>.
+
+See L<re/'strict' mode>
+
=item String- and number-specific bitwise operators
Introduced in: Perl 5.22.0
=item String- and number-specific bitwise operators
Introduced in: Perl 5.22.0