Commit b4e3633a authored by Heikki Linnakangas's avatar Heikki Linnakangas

Silence warning about deprecated assignment to $[ in check_keywords.pl

Alex Hunsaker
parent 58a9596e
...@@ -16,7 +16,6 @@ if (@ARGV) { ...@@ -16,7 +16,6 @@ if (@ARGV) {
$path = "."; $path = ".";
} }
$[ = 1; # set array base to 1
$, = ' '; # set output field separator $, = ' '; # set output field separator
$\ = "\n"; # set output record separator $\ = "\n"; # set output record separator
...@@ -60,7 +59,7 @@ line: while (<GRAM>) { ...@@ -60,7 +59,7 @@ line: while (<GRAM>) {
$n = (@arr = split(' ', $S)); $n = (@arr = split(' ', $S));
# Ok, we're in a keyword list. Go through each field in turn # 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) { if ($arr[$fieldIndexer] eq '*/' && $comment) {
$comment = 0; $comment = 0;
next; next;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment