summaryrefslogtreecommitdiff
path: root/lib/getopts.pl
diff options
context:
space:
mode:
authorLarry Wall <lwall@netlabs.com>1992-06-08 04:52:56 +0000
committerLarry Wall <lwall@netlabs.com>1992-06-08 04:52:56 +0000
commit8adcabd8d9cf3c71e660c45cb7165ae4694308d4 (patch)
tree5b9373a201cf028f5311512e532230c563057c07 /lib/getopts.pl
parent1d4d38c37d3c694b3c50c8fd57f5afcdb93c1ffe (diff)
downloadperl-8adcabd8d9cf3c71e660c45cb7165ae4694308d4.tar.gz
perl 4.0 patch 25: patch #20, continued
See patch #20.
Diffstat (limited to 'lib/getopts.pl')
-rw-r--r--lib/getopts.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/getopts.pl b/lib/getopts.pl
index 6590918016..a0818d1e3a 100644
--- a/lib/getopts.pl
+++ b/lib/getopts.pl
@@ -18,6 +18,7 @@ sub Getopts {
if($args[$pos+1] eq ':') {
shift(@ARGV);
if($rest eq '') {
+ ++$errs unless @ARGV;
$rest = shift(@ARGV);
}
eval "\$opt_$first = \$rest;";