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.
This commit is contained in:
parent
7a9991966b
commit
b1cc82f2fa
1 changed files with 3 additions and 3 deletions
6
ddclient
6
ddclient
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl
|
||||||
#!/usr/local/bin/perl -w
|
|
||||||
######################################################################
|
######################################################################
|
||||||
#
|
#
|
||||||
# DDCLIENT - a Perl client for updating DynDNS information
|
# DDCLIENT - a Perl client for updating DynDNS information
|
||||||
|
@ -19,8 +18,9 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
######################################################################
|
######################################################################
|
||||||
require 5.004;
|
require v5.8.0;
|
||||||
use strict;
|
use strict;
|
||||||
|
use warnings;
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
use Sys::Hostname;
|
use Sys::Hostname;
|
||||||
use IO::Socket;
|
use IO::Socket;
|
||||||
|
|
Loading…
Reference in a new issue