From b1cc82f2fa65ef4b19f6baff14634e08f1e35be7 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 23 May 2020 14:53:26 -0400 Subject: [PATCH] Replace Perl `-w` flag with `use warnings;` Also delete the useless 2nd shebang line and bump the required Perl version. Now the shebang line conforms with Debian policy 4.1.2 to 4.2.0. See: https://www.debian.org/doc/debian-policy/upgrading-checklist.html#version-4-1-2 Perl v5.8.0 (released in 2002) was chosen because: * `use warnings` was added in Perl v5.6.0 (released 2000) * The `require` function itself changed in v5.8.0 to support the more readable non-numeric version literal syntax. --- ddclient | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ddclient b/ddclient index 205c24a..49c5ec0 100755 --- a/ddclient +++ b/ddclient @@ -1,5 +1,4 @@ -#!/usr/bin/perl -w -#!/usr/local/bin/perl -w +#!/usr/bin/perl ###################################################################### # # DDCLIENT - a Perl client for updating DynDNS information @@ -19,8 +18,9 @@ # # ###################################################################### -require 5.004; +require v5.8.0; use strict; +use warnings; use Getopt::Long; use Sys::Hostname; use IO::Socket;