perldelta: no warnings will do no good if you leave out "warnings"
authorRicardo Signes <rjbs@cpan.org>
Fri, 10 May 2013 18:24:27 +0000 (14:24 -0400)
committerRicardo Signes <rjbs@cpan.org>
Fri, 10 May 2013 18:24:27 +0000 (14:24 -0400)
pod/perldelta.pod

index 582909d..7969669 100644 (file)
@@ -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, "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