Update apxs for perl 5.12: Remove useless use of $[, which is now deprecated.
Submitted by: Roderich Schupp <roderich schupp googlemail com>
Reviewed by: sf, trawick, pgollucci
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@942882
13f79535-47bb-0310-9956-
ffa450edef68
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * Update apxs for perl 5.12
- Trunk patch: http://svn.apache.org/viewvc?rev=932791&view=rev
- 2.2.x patch: trunk patch works
- +1: sf, trawick, pgollucci
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
[ New proposals should be added at the end of the list ]
my ($argumentative, @ARGV) = @_;
my $errs = 0;
local $_;
- local $[ = 0;
my @args = split / */, $argumentative;
while (@ARGV && ($_ = $ARGV[0]) =~ /^-(.)(.*)/) {
last;
}
my $pos = index($argumentative,$first);
- if ($pos >= $[) {
+ if ($pos >= 0) {
if ($pos < $#args && $args[$pos+1] eq ':') {
shift @ARGV;
if ($rest eq '') {