Re: [ID 20020626.011] wantarray() causes clobbering of unrelated vars outside the sub
[p5sagit/p5-mst-13.2.git] / lib / File / Basename.pm
index b2ab469..f2ef495 100644 (file)
@@ -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);
 }