# Written by Roland McGrath.
# Rewritten in Perl by Akim Demaille.
+use 5.006;
+use strict;
+use warnings;
+
BEGIN
{
my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@';
use Autom4te::FileUtils;
use Autom4te::General;
use Autom4te::XFile;
-use strict;
# Using 'do FILE', we need 'local' vars.
-use vars qw ($config_h %verbatim %symbol);
+use vars qw ($config_h %symbol %verbatim);
# Lib files.
my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
+use 5.006;
+use strict;
+use warnings;
BEGIN
{
$ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
}
+use File::Basename;
+
use Autom4te::C4che;
use Autom4te::ChannelDefs;
use Autom4te::Channels;
use Autom4te::FileUtils;
use Autom4te::General;
use Autom4te::XFile;
-use File::Basename;
-use strict;
-use warnings;
# Data directory.
my $pkgdatadir = $ENV{'AC_MACRODIR'} || '@pkgdatadir@';
# Written by David J. MacKenzie.
# Extended and rewritten in Perl by Akim Demaille.
+use 5.006;
+use strict;
+use warnings;
+
BEGIN
{
my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@';
$ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
}
+# Do not use Cwd::chdir, since it might hang.
+use Cwd qw (cwd);
+
use Autom4te::ChannelDefs;
use Autom4te::Channels;
use Autom4te::Configure_ac;
use Autom4te::FileUtils;
use Autom4te::General;
use Autom4te::XFile;
-# Do not use Cwd::chdir, since it might hang.
-use Cwd 'cwd';
-use strict;
-use warnings;
## ----------- ##
## Variables. ##
eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
if 0;
+use 5.006;
+use strict;
+use warnings;
+
BEGIN
{
my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@';
$ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
}
+use File::Basename;
+use File::Find;
+
use Autom4te::ChannelDefs;
use Autom4te::Configure_ac;
-use Autom4te::General;
use Autom4te::FileUtils;
+use Autom4te::General;
use Autom4te::XFile;
-use File::Basename;
-use File::Find;
-use strict;
-use warnings;
use vars qw(@cfiles @makefiles @shfiles @subdirs %printed);
eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
if 0;
+use 5.006;
+use strict;
+use warnings;
+
BEGIN
{
my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@';
$ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
}
+use File::Basename;
+
use Autom4te::ChannelDefs;
use Autom4te::Channels;
use Autom4te::Configure_ac;
use Autom4te::FileUtils;
use Autom4te::General;
use Autom4te::XFile;
-use File::Basename;
-use strict;
-use warnings;
# Lib files.
my $autom4te = $ENV{'AUTOM4TE'} || '@bindir@/@autom4te-name@';
# Written by David MacKenzie <djm@gnu.ai.mit.edu>
# and Paul Eggert <eggert@twinsun.com>.
+use 5.006;
+use strict;
+use warnings;
+
BEGIN
{
my $pkgdatadir = $ENV{'autom4te_perllibdir'} || '@pkgdatadir@';
use Autom4te::General;
use Autom4te::XFile;
use Autom4te::FileUtils;
-use warnings;
# $HELP
# -----
=cut
-use Data::Dumper;
-use Autom4te::Request;
-use Carp;
+use 5.006;
use strict;
use warnings;
+use Carp;
+use Data::Dumper;
+
+use Autom4te::Request;
+
=over 4
=item @request
=cut
-use vars qw(@request);
+use vars qw (@request);
=item C<$req = Autom4te::C4che-E<gt>retrieve (%attr)>
use 5.006;
use strict;
use warnings;
-use Exporter;
-use vars qw (@ISA @EXPORT);
+use Exporter;
+use vars qw (@EXPORT @ISA);
@ISA = qw (Exporter);
@EXPORT = qw (&prog_error &error &fatal &verb
&switch_warning &parse_WARNINGS &parse_warnings);
use 5.006;
use strict;
use warnings;
-use Exporter;
+
use Carp;
+use Exporter;
use File::Basename;
-use vars qw (@ISA @EXPORT %channels $me);
+use vars qw (@EXPORT @ISA %channels $me);
@ISA = qw (Exporter);
@EXPORT = qw ($exit_code $warnings_are_errors
use 5.006;
use strict;
use warnings;
+
use Exporter;
-use Autom4te::Channels;
-use Autom4te::ChannelDefs;
-use vars qw (@ISA @EXPORT);
+use Autom4te::ChannelDefs;
+use Autom4te::Channels;
+use vars qw (@EXPORT @ISA);
@ISA = qw (Exporter);
@EXPORT = qw (&find_configure_ac &require_configure_ac);
use 5.006;
use strict;
use warnings;
+
use Exporter;
use File::stat;
use IO::File;
-use Autom4te::Channels;
-use Autom4te::ChannelDefs;
-use vars qw (@ISA @EXPORT);
+use Autom4te::ChannelDefs;
+use Autom4te::Channels;
+use vars qw (@EXPORT @ISA);
@ISA = qw (Exporter);
@EXPORT = qw (&contents
&find_file &mtime
=cut
use 5.006;
+use strict;
+use warnings;
+
+use Carp;
use Exporter;
-use Autom4te::ChannelDefs;
-use Autom4te::Channels;
-use Autom4te::Getopt ();
use File::Basename;
use File::Path ();
use File::stat;
use IO::File;
-use Carp;
-use strict;
-use warnings;
-use vars qw (@ISA @EXPORT);
+use Autom4te::ChannelDefs;
+use Autom4te::Channels;
+use Autom4te::Getopt ();
+
+use vars qw (@EXPORT @ISA);
@ISA = qw (Exporter);
# Variables we define and export.
use 5.006;
use strict;
use warnings FATAL => 'all';
+
+use Carp qw (confess croak);
use Exporter ();
use Getopt::Long ();
-use Autom4te::ChannelDefs qw/fatal/;
-use Carp qw/croak confess/;
-use vars qw (@ISA @EXPORT);
+use Autom4te::ChannelDefs qw (fatal);
+
+use vars qw (@EXPORT @ISA);
@ISA = qw (Exporter);
-@EXPORT= qw/getopt/;
+@EXPORT = qw (getopt);
=item C<parse_options (%option)>
=cut
+use 5.006;
use strict;
use warnings;
-use Class::Struct;
+
use Carp;
+use Class::Struct;
use Data::Dumper;
struct
use 5.006;
use strict;
use warnings;
-use vars qw($VERSION @EXPORT @EXPORT_OK $AUTOLOAD @ISA);
+
use Carp;
+use DynaLoader;
use Errno;
-use IO::File;
+use Exporter;
use File::Basename;
+use IO::File;
+
use Autom4te::ChannelDefs;
-use Autom4te::Channels qw(msg);
+use Autom4te::Channels qw (msg);
use Autom4te::FileUtils;
-require Exporter;
-require DynaLoader;
-
-@ISA = qw(IO::File Exporter DynaLoader);
-
-$VERSION = "1.2";
-
+use vars qw ($AUTOLOAD @EXPORT @EXPORT_OK @ISA $VERSION);
+@ISA = qw (DynaLoader Exporter IO::File);
@EXPORT = @IO::File::EXPORT;
+$VERSION = "1.2";
eval {
# Make all Fcntl O_XXX and LOCK_XXX constants available for importing