Created
May 30, 2013 09:13
-
-
Save domm/5676677 to your computer and use it in GitHub Desktop.
fixed usage of "no if .. warnings" in perldelta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From eeeadd16dcfaa7977dfba9a1ba07ac7708ad16f0 Mon Sep 17 00:00:00 2001 | |
From: Thomas Klausner <domm@plix.at> | |
Date: Thu, 30 May 2013 11:10:30 +0200 | |
Subject: [PATCH] fixed usage of "no if .. warnings" in perldelta | |
--- | |
pod/perl5180delta.pod | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/pod/perl5180delta.pod b/pod/perl5180delta.pod | |
index aa244dc..03341b6 100644 | |
--- a/pod/perl5180delta.pod | |
+++ b/pod/perl5180delta.pod | |
@@ -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. | |
-- | |
1.7.10.4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment