summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1989-11-10 16:20:25 +0000
committerLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1989-11-10 16:20:25 +0000
commitbf38876a182e0df9dd73362f56cf0ab8b43aa789 (patch)
tree0c8c37dbaeeadb7549ca7b6d3f2b19d92896f9bb /lib
parent91407755d9b894ac1239c4fafe586e52138db38d (diff)
downloadperl-bf38876a182e0df9dd73362f56cf0ab8b43aa789.tar.gz
perl 3.0 patch #3 Patch #2 continued
Diffstat (limited to 'lib')
-rw-r--r--lib/getopts.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/getopts.pl b/lib/getopts.pl
index 926988516e..7effafa195 100644
--- a/lib/getopts.pl
+++ b/lib/getopts.pl
@@ -14,16 +14,16 @@ sub Getopts {
$pos = index($argumentative,$first);
if($pos >= $[) {
if($args[$pos+1] eq ':') {
- shift;
+ shift(@ARGV);
if($rest eq '') {
- $rest = shift;
+ $rest = shift(@ARGV);
}
eval "\$opt_$first = \$rest;";
}
else {
eval "\$opt_$first = 1";
if($rest eq '') {
- shift;
+ shift(@ARGV);
}
else {
$ARGV[0] = "-$rest";
@@ -36,7 +36,7 @@ sub Getopts {
$ARGV[0] = "-$rest";
}
else {
- shift;
+ shift(@ARGV);
}
}
}