in reply to Perl redirection in Win-NT
But, if you invoke your script2 like so:
system ("perl script2.pl > gg") ...
... it produces the expected output#script1.pl use diagnostics -verbose; use FileHandle; FileHandle::autoflush STDOUT 1; print "In script 1\n"; unlink ("gg"); #system ("script2.pl > gg"); system ("perl script2.pl > gg"); FileHandle::autoflush STDOUT 1;
HTHH:\devperl\perlmonks>type gg In script 2 In script 3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl redirection in Win-NT
by Anonymous Monk on Aug 16, 2001 at 02:47 UTC | |
by Rudif (Hermit) on Aug 16, 2001 at 03:07 UTC |