X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/cfc85103a5b0d727dc80c47d60e05c15a3ee03e8..08f18727250f262830d3b2860052d5b5e6083051:/keywords.pl diff --git a/keywords.pl b/keywords.pl index ac81d42..eb0c0af 100755 --- a/keywords.pl +++ b/keywords.pl @@ -1,4 +1,5 @@ -#!/usr/bin/perl +#!/usr/bin/perl -w +use strict; require 'regen_lib.pl'; safer_unlink ("keywords.h"); @@ -12,7 +13,7 @@ print <) { chop; next unless $_; next if /^#/; - ($keyword) = split; + my ($keyword) = split; print &tab(5, "#define KEY_$keyword"), $keynum++, "\n"; } @@ -40,7 +41,7 @@ close KW or die "Error closing keywords.h: $!"; ########################################################################### sub tab { - local($l, $t) = @_; + my ($l, $t) = @_; $t .= "\t" x ($l - (length($t) + 1) / 8); $t; } @@ -55,6 +56,7 @@ __DATA__ __END__ AUTOLOAD BEGIN +UNITCHECK CORE DESTROY END @@ -103,7 +105,6 @@ endpwent endservent eof eq -err eval exec exists @@ -257,6 +258,7 @@ sprintf sqrt srand stat +state study sub substr