summaryrefslogtreecommitdiff
path: root/pod/perl5180delta.pod
diff options
context:
space:
mode:
authorRicardo Signes <rjbs@cpan.org>2013-05-30 20:05:37 -0400
committerRicardo Signes <rjbs@cpan.org>2013-05-30 20:05:37 -0400
commit2153ce53b982b7b56b70f3ffe0a8b711d609e240 (patch)
tree6f69c8b9a4071c44e6ff82b85736acd130696dc7 /pod/perl5180delta.pod
parent83aea42c35461c43421a52f925ba2757fe31d211 (diff)
downloadperl-2153ce53b982b7b56b70f3ffe0a8b711d609e240.tar.gz
correct example for turning of experimental warnings
Original patch from Thomas Klausner <domm@plix.at>, tweaked with a suggestion by Karen Etheridge <perl@froods.org>.
Diffstat (limited to 'pod/perl5180delta.pod')
-rw-r--r--pod/perl5180delta.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perl5180delta.pod b/pod/perl5180delta.pod
index aa244dcb20..6643941329 100644
--- a/pod/perl5180delta.pod
+++ b/pod/perl5180delta.pod
@@ -41,7 +41,7 @@ Since some features (like C<~~> or C<my $_>) now emit experimental warnings,
and you may want to disable them in code that is also run on perls that do not
recognize these warning categories, consider using the C<if> pragma like this:
- no if $] >= 5.018, 'warnings', "experimental::feature_name";
+ no if $] >= 5.018, warnings => "experimental::feature_name";
Existing experimental features may begin emitting these warnings, too. Please
consult L<perlexperiment> for information on which features are considered
@@ -405,7 +405,7 @@ is not recommended.
Warnings will now be issued when the parser sees C<~~>, C<given>, or C<when>.
To disable these warnings, you can add this line to the appropriate scope:
- no if $] >= 5.018, "experimental::smartmatch";
+ no if $] >= 5.018, warnings => "experimental::smartmatch";
Consider, though, replacing the use of these features, as they may change
behavior again before becoming stable.