]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Consistently use ‘our’ instead of ‘use vars’ in Perl.
authorZack Weinberg <zackw@panix.com>
Mon, 21 Sep 2020 18:33:52 +0000 (14:33 -0400)
committerZack Weinberg <zackw@panix.com>
Mon, 21 Sep 2020 18:33:52 +0000 (14:33 -0400)
commit904d8e72e5a511dde72173a1d7f0e4c1e5bf4b79
tree71aa750e24dc57bcb38e9c49d9b535f072ed93c0
parentf48d5cee1c57bd3c6c136fc1b83cc00871fd9aa2
Consistently use ‘our’ instead of ‘use vars’ in Perl.

At file scope of a file containing at most one ‘package’ declaration,
‘use vars’ is exactly equivalent to ‘our’, and the latter is preferred
starting with Perl 5.6.0, which happens to be the oldest version we
support.

In one place ‘our’ was not actually necessary and was switched to ‘my’.

(This change has already been made in Automake and applied to the
shared Perl code via the previous ‘make fetch’ commit.)

* lib/Autom4te/C4che.pm
* lib/Autom4te/ChannelDefs.pm
* lib/Autom4te/General.pm: Replace all uses of ‘use vars’ with ‘our’.
* bin/autoheader.in: Replace all uses of ‘use vars’ with ‘our’.
  Remove an unnecessary ‘local’.
* bin/autoscan.in: Convert ‘use vars’ variables to ‘my’ variables.
bin/autoheader.in
bin/autoscan.in
lib/Autom4te/C4che.pm
lib/Autom4te/ChannelDefs.pm
lib/Autom4te/General.pm