diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-06-22 09:59:49 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-06-23 08:44:43 +0100 |
commit | 8f8c2a4448d4895f07a65262094032f124603527 (patch) | |
tree | d3bb72d8e576bc941ded66815e1b587bb6a56851 /ext/Errno | |
parent | 96183d25c8bf116d31888a79fd63a86056518da1 (diff) | |
download | perl-8f8c2a4448d4895f07a65262094032f124603527.tar.gz |
Tweak the generated Errno.pm slightly. Shorter and slightly fewer ops.
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.
Diffstat (limited to 'ext/Errno')
-rw-r--r-- | ext/Errno/Errno_pm.PL | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index e0e328fe59..0899ddea91 100644 --- a/ext/Errno/Errno_pm.PL +++ b/ext/Errno/Errno_pm.PL @@ -334,13 +334,13 @@ EOF # 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; @@ -348,9 +348,9 @@ 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; @@ -378,11 +378,9 @@ print <<'ESQ'; } } -our (@EXPORT_OK, %EXPORT_TAGS); +our @EXPORT_OK = keys %err; -@EXPORT_OK = keys %err; - -%EXPORT_TAGS = ( +our %EXPORT_TAGS = ( POSIX => [qw( ESQ @@ -493,6 +491,7 @@ under the same terms as Perl itself. =cut +# ex: set ro: ESQ } |