in reply to Dynamically Create a file
2> is the shells way of redirecting STDERR to someplace else.
Try this on for size...
Note the use strict; and use warnings; directives. Those are your friend. EDIT: I should probably mention that I used qx// rather than system() because the former will return a program's output, and the latter only returns the return status.use strict; use warnings; $testCase = "testing"; my $test = "./$testCase.txt"; $command = "lin --help 2> $test"; my $result = `$command`; print $result;
--starX
www.axisoftime.com
|
---|