Use “use warnings” instead of passing “-w”. Remove “--” parameters. Remove shebangs from perl modules. Remove spaces after “#!”.
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
# -*-perl-*-
#
# Copyright © 1996 Andy Guy <awpguy@acs.ucalgary.ca>
@@ -8,6 +8,8 @@
# This program has been distributed under the terms of the GNU GPL.
use strict;
+use warnings;
+
use vars qw(%config $ftp);
#use diagnostics;
use vars qw(%config);
use lib '/usr/lib/perl5/Debian';
-#!/usr/bin/perl --
# dselect - Debian package maintenance user interface
# mkcurkeys.pl - generate strings mapping key names to ncurses numbers
@@ -1,4 +1,3 @@
# Copied from /usr/share/perl5/Debconf/Gettext.pm
# Redistribution and use in source and binary forms, with or without
-#!/usr/bin/perl
# bzr support for dpkg-source
# git support for dpkg-source
-#! /usr/bin/perl
# dpkg-architecture
# dpkg-divert
# dpkg-shlibdeps
# update-alternatives