summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormorkt <>2015-01-17 10:38:15 +0100
committerYorhel <git@yorhel.nl>2015-01-17 10:38:15 +0100
commitb718d117282e73c3f99d308efde46d56789cd041 (patch)
treeafc336a55fed482c96921f8f0298004a80affc90
parent8c2472ce6009f828027a43cf8ac9490c9f05307d (diff)
Handler::VNPage: Conditionally disable warnings for smartmatch
Only recent perl versions need it, on older versions the 'no warnings' line would cause an error.
-rw-r--r--lib/VNDB/Handler/VNPage.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index 3995ce2a..0f8f71ba 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -3,7 +3,7 @@ package VNDB::Handler::VNPage;
use strict;
use warnings;
-no warnings 'experimental::smartmatch';
+no if $] >= 5.018, warnings => 'experimental::smartmatch';
use feature qw{ switch };
use TUWF ':html', 'xml_escape';
use VNDB::Func;