Skip to content

Commit b4e3633

Browse files
committed
Silence warning about deprecated assignment to $[ in check_keywords.pl
Alex Hunsaker
1 parent 58a9596 commit b4e3633

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tools/check_keywords.pl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
$path = ".";
1717
}
1818

19-
$[ = 1; # set array base to 1
2019
$, = ' '; # set output field separator
2120
$\ = "\n"; # set output record separator
2221

@@ -60,7 +59,7 @@
6059
$n = (@arr = split(' ', $S));
6160

6261
# Ok, we're in a keyword list. Go through each field in turn
63-
for (my $fieldIndexer = 1; $fieldIndexer <= $n; $fieldIndexer++) {
62+
for (my $fieldIndexer = 0; $fieldIndexer < $n; $fieldIndexer++) {
6463
if ($arr[$fieldIndexer] eq '*/' && $comment) {
6564
$comment = 0;
6665
next;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy