use Autom4te::General;
use Autom4te::XFile;
-# Using 'do FILE', we need 'local' vars.
-use vars qw ($config_h %symbol %verbatim);
+# These vars must be package globals so they can be accessed by code
+# evaluated via 'do FILE', below.
+our ($config_h, %symbol, %verbatim);
# Lib files.
my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
-local $config_h;
my $config_h_in;
my @prepend_include;
my @include;
use Autom4te::General;
use Autom4te::XFile;
-use vars qw(@cfiles @makefiles @shfiles @subdirs %printed);
+my (@cfiles, @makefiles, @shfiles, @subdirs, %printed);
# The kind of the words we are looking for.
my @kinds = qw (function header identifier program
List of requests.
-We cannot declare it "my" as the loading, performed via "do", would
-refer to another scope, and @request would not be updated. It used to
-work with "my" vars, and I do not know whether the current behavior
-(5.6) is wanted or not.
+Must be a package global so it can be accessed by code evaluated via
+'eval', below.
=cut
-use vars qw (@request);
+our @request;
=item C<$req = Autom4te::C4che-E<gt>retrieve (%attr)>
use Exporter;
-use vars qw (@EXPORT @ISA);
-@ISA = qw (Exporter);
-@EXPORT = qw (&prog_error &error &fatal &verb
- &switch_warning &parse_WARNINGS &parse_warnings);
+our @ISA = qw (Exporter);
+our @EXPORT = qw (&prog_error &error &fatal &verb
+ &switch_warning &parse_WARNINGS &parse_warnings);
=head2 CHANNELS
use Autom4te::Channels;
use Autom4te::Getopt ();
-use vars qw (@EXPORT @ISA);
-@ISA = qw (Exporter);
+our @ISA = qw (Exporter);
# Variables we define and export.
my @export_vars =
my @export_forward_subs =
qw (&basename &dirname &fileparse);
-@EXPORT = (@export_vars, @export_subs, @export_forward_subs);
+our @EXPORT = (@export_vars, @export_subs, @export_forward_subs);
# Variable we share with the main package. Be sure to have a single
=cut
-use vars qw ($debug);
-$debug = 0;
+our $debug = 0;
=item C<$force>
=cut
-use vars qw ($force);
-$force = undef;
+our $force = undef;
=item C<$help>
=cut
-use vars qw ($help);
-$help = undef;
+our $help = undef;
=item C<$me>
=cut
-use vars qw ($me);
-$me = basename ($0);
+our $me = basename ($0);
=item C<$tmp>
=cut
# Our tmp dir.
-use vars qw ($tmp);
-$tmp = undef;
+our $tmp = undef;
=item C<$verbose>
=cut
-use vars qw ($verbose);
-$verbose = 0;
+our $verbose = 0;
=item C<$version>
=cut
-use vars qw ($version);
-$version = undef;
+our $version = undef;
=back