Don't use LF constant, use 'say'
authorHeiko Schlittermann <hs@schlittermann.de>
Mon, 02 May 2016 23:12:13 +0200
changeset 5 3ae3e79ee936
parent 4 6b7f69be290a
child 6 10fc0d468fec
Don't use LF constant, use 'say'
check_tlsa
--- a/check_tlsa	Mon May 02 23:11:59 2016 +0200
+++ b/check_tlsa	Mon May 02 23:12:13 2016 +0200
@@ -18,7 +18,7 @@
 
 use strict;
 use warnings;
-use feature qw(switch);
+use feature qw(switch say);
 use if $^V >= v5.020 => (experimental => qw(smartmatch));
 use experimental qw(smartmatch);
 use Monitoring::Plugin;
@@ -27,8 +27,6 @@
 #devel
 use Data::Dumper;
 
-use constant LF => "\n";
-
 my $VERSION = '0.1';
 my $blurb   = 'This Plugin is intendet to check TLSA Record';
 my $url     = 'https://schlittermann.de';
@@ -109,7 +107,7 @@
     my $excuse = "Please set -H <domain> or -f <domainlist>\n"
       . "For all options try $script --help";
 
-    print $excuse, LF;
+    say $excuse;
     exit 1;
 }