Subject: | @ARGV overwritten |
(I'm sorry by words of machine translation.)
ARGV of a child is polluted as follows by ARGV of a parent.
I should originally become a=1,b=2,c=3.
---
D:\wk>type a.pl
`b.exe 1 2 3 4 5` ;
D:\wk>type b.pl
$a = shift ;
$b = shift ;
$c = shift ;
$d = shift ;
$e = shift ;
open(AP,">b.txt") ;
print AP "a = $a\n" ;
print AP "b = $b\n" ;
print AP "c = $c\n" ;
print AP "d = $d\n" ;
print AP "e = $e\n" ;
close(AP) ;
D:\wk>pp -o a.exe a.pl
D:\wk>pp -o b.exe b.pl
D:\wk>a.exe a b c
D:\wk>type b.txt
a = a
b = b
c = c
d = 4
e = 5