projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d2f125
)
Remove a spurious undefined warning when using getopts.pl with -w.
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 10 Mar 2005 17:36:37 +0000
(17:36 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 10 Mar 2005 17:36:37 +0000
(17:36 +0000)
(from Debian)
p4raw-id: //depot/perl@24019
lib/getopts.pl
patch
|
blob
|
history
diff --git
a/lib/getopts.pl
b/lib/getopts.pl
index
4a50b8f
..
e30820a
100644
(file)
--- a/
lib/getopts.pl
+++ b/
lib/getopts.pl
@@
-31,7
+31,7
@@
sub Getopts {
}
eval "
push(\@opt_$first, \$rest);
- if
(
\$opt_$first eq '') {
+ if
(!defined \$opt_$first or
\$opt_$first eq '') {
\$opt_$first = \$rest;
}
else {