projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Re: [ID 20020626.011] wantarray() causes clobbering of unrelated vars outside the sub
[p5sagit/p5-mst-13.2.git]
/
lib
/
File
/
Basename.pm
diff --git
a/lib/File/Basename.pm
b/lib/File/Basename.pm
index
b2ab469
..
f2ef495
100644
(file)
--- a/
lib/File/Basename.pm
+++ b/
lib/File/Basename.pm
@@
-226,7
+226,7
@@
sub fileparse {
$tail .= $taint if defined $tail; # avoid warning if $tail == undef
wantarray ? ($basename .= $taint, $dirpath .= $taint, $tail)
- : $basename .= $taint;
+ : ($basename .= $taint);
}