From d8f4038b45507620f7696fecd8527345f1f384db Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sun, 20 Mar 2022 12:03:44 +0100 Subject: dselect: Use strict and warnings pragmas Move the warnings from the shebang into a proper pragma, so that we are sure it will be enabled regardless of the script being called explicitly without the flag. --- dselect/setup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dselect/setup b/dselect/setup index ba1a4ca33..ac910d1c1 100755 --- a/dselect/setup +++ b/dselect/setup @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl # -*- Mode: Perl -*- # setup.pl --- # Author : Manoj Srivastava ( srivasta@tiamat.datasync.com ) @@ -14,7 +14,8 @@ # This file is designed to go into /usr/lib/apt/methods/setup # -#use strict; +use strict; +use warnings; #use diagnostics; #printf STDERR "DEBUG: Arguments $ARGV[0];$ARGV[1];$ARGV[2];\n"; -- cgit v1.2.3-70-g09d2