summaryrefslogtreecommitdiff
path: root/support/apxs.in
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2010-04-10 20:54:37 +0000
committerStefan Fritsch <sf@apache.org>2010-04-10 20:54:37 +0000
commit8725d94311fa64e6e911f01f470a991e51b7c73b (patch)
tree52052894d24ba824635d70fdd352fa5aa6417c98 /support/apxs.in
parent1be834ec25fe758c48ee1ed1902a1cf3ee326cd7 (diff)
downloadhttpd-8725d94311fa64e6e911f01f470a991e51b7c73b.tar.gz
Remove useless use of $[, which was long deprecated and is an error with perl 5.12rc3.
Submitted by: Roderich Schupp <roderich schupp googlemail com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@932791 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/apxs.in')
-rw-r--r--support/apxs.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/support/apxs.in b/support/apxs.in
index 87a9a7d43d..5ea3e22147 100644
--- a/support/apxs.in
+++ b/support/apxs.in
@@ -84,7 +84,6 @@ sub Getopts {
my ($argumentative, @ARGV) = @_;
my $errs = 0;
local $_;
- local $[ = 0;
my @args = split / */, $argumentative;
while (@ARGV && ($_ = $ARGV[0]) =~ /^-(.)(.*)/) {
@@ -94,7 +93,7 @@ sub Getopts {
last;
}
my $pos = index($argumentative,$first);
- if ($pos >= $[) {
+ if ($pos >= 0) {
if ($pos < $#args && $args[$pos+1] eq ':') {
shift @ARGV;
if ($rest eq '') {