Use our directly at the first assignment, rather than on a line by itself.
Add editor readonly blocks, consistent with most other generated files.
require Exporter, rather than using it with an empty import list. We don't need
it at compile time.
# Write Errno.pm
print <<"EDQ";
+# -*- buffer-read-only: t -*-
#
# This file is auto-generated. ***ANY*** changes here will be lost
#
package Errno;
-our (\@ISA,\$VERSION);
-use Exporter ();
+require Exporter;
use Config;
use strict;
"$Config{'archname'}-$Config{'osvers'}" or
die "Errno architecture ($Config{'archname'}-$Config{'osvers'}) does not match executable architecture (\$Config{'archname'}-\$Config{'osvers'})";
-\$VERSION = "$VERSION";
+our \$VERSION = "$VERSION";
\$VERSION = eval \$VERSION;
-\@ISA = qw(Exporter);
+our \@ISA = 'Exporter';
my %err;
}
}
-our (@EXPORT_OK, %EXPORT_TAGS);
+our @EXPORT_OK = keys %err;
-@EXPORT_OK = keys %err;
-
-%EXPORT_TAGS = (
+our %EXPORT_TAGS = (
POSIX => [qw(
ESQ
=cut
+# ex: set ro:
ESQ
}