fixed the experimental
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Thu, 05 Jun 2014 00:02:38 +0200
changeset 23 6ea7152f33a7
parent 22 d8df7660e2dd
child 24 6d79c81a2931
fixed the experimental
bin/dnsvi
lib/DNS/Vi.pm
--- a/bin/dnsvi	Wed Jun 04 14:50:38 2014 +0200
+++ b/bin/dnsvi	Thu Jun 05 00:02:38 2014 +0200
@@ -98,7 +98,7 @@
 
 =head1 SYNOPSIS
 
- vidns [[-l] | [[-k key] [-s server]]] [-d] <zone> [<file>]
+ dnsvi [[-l] | [[-k key] [-s server]]] [-d] <zone> [<file>]
 
 =head1 DESCRIPTION
 
--- a/lib/DNS/Vi.pm	Wed Jun 04 14:50:38 2014 +0200
+++ b/lib/DNS/Vi.pm	Thu Jun 05 00:02:38 2014 +0200
@@ -2,12 +2,13 @@
 use 5.010;
 use strict;
 use warnings;
-no warnings 'experimental';
 use if $ENV{DEBUG}//''  eq 'dnsvi' => 'Smart::Comments';
 use Digest::SHA qw(sha512_hex);
 use File::Temp;
+use base 'Exporter';
 
-use base 'Exporter';
+# we need to survive the newer perls
+BEGIN { warnings::unimport('experimental'); }
 
 our @EXPORT = qw(ttl2h h2ttl parse delta nice edit update show);
 our @EXPORT_OK = ();
@@ -17,6 +18,9 @@
     my $data = shift;
     my @lines = split /\n/, $data;
 
+    my $x;
+    say $x;
+
     my @zone;
     my ($origin, $ttl, $last_label, $soa_seen);