projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a9596
)
Silence warning about deprecated assignment to $[ in check_keywords.pl
author
Heikki Linnakangas
<
[email protected]
>
Mon, 13 Feb 2012 07:15:08 +0000
(09:15 +0200)
committer
Heikki Linnakangas
<
[email protected]
>
Mon, 13 Feb 2012 07:15:08 +0000
(09:15 +0200)
Alex Hunsaker
src/tools/check_keywords.pl
patch
|
blob
|
blame
|
history
diff --git
a/src/tools/check_keywords.pl
b/src/tools/check_keywords.pl
index 3b68638614395fd30964ad7dbcd8b473de50c058..178775484001d1b213047116e8ae628f4a1be698 100755
(executable)
--- a/
src/tools/check_keywords.pl
+++ b/
src/tools/check_keywords.pl
@@
-16,7
+16,6
@@
if (@ARGV) {
$path = ".";
}
-$[ = 1; # set array base to 1
$, = ' '; # set output field separator
$\ = "\n"; # set output record separator
@@
-60,7
+59,7
@@
line: while (<GRAM>) {
$n = (@arr = split(' ', $S));
# Ok, we're in a keyword list. Go through each field in turn
- for (my $fieldIndexer =
1; $fieldIndexer <=
$n; $fieldIndexer++) {
+ for (my $fieldIndexer =
0; $fieldIndexer <
$n; $fieldIndexer++) {
if ($arr[$fieldIndexer] eq '*/' && $comment) {
$comment = 0;
next;