From: Ævar Arnfjörð Bjarmason Date: Fri, 24 Sep 2010 20:00:53 +0000 (+0000) Subject: perl: use "use warnings" instead of -w X-Git-Tag: v1.7.3.4~30^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/3328acedc6104e3d46e8f0d26006d9650092ef3e?hp=3328acedc6104e3d46e8f0d26006d9650092ef3e perl: use "use warnings" instead of -w Change the Perl scripts to turn on lexical warnings instead of setting the global $^W variable via the -w switch. The -w sets warnings for all code that interpreter runs, while "use warnings" is lexically scoped. The former is probably not what the authors wanted. As an auxiliary benefit it's now possible to build Git with: PERL_PATH='/usr/bin/env perl' Which would previously result in failures, since "#!/usr/bin/env perl -w" doesn't work as a shebang. Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano ---