From 2153ce53b982b7b56b70f3ffe0a8b711d609e240 Mon Sep 17 00:00:00 2001 From: Ricardo Signes Date: Thu, 30 May 2013 20:05:37 -0400 Subject: correct example for turning of experimental warnings Original patch from Thomas Klausner , tweaked with a suggestion by Karen Etheridge . --- pod/perl5180delta.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pod/perl5180delta.pod') 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) 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 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 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, or C. 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. -- cgit v1.2.1