K
kj
If I wanted to execute an external (unix) command X such that X's
normal output went to some file, but any error messages from X were
saved to an array, I could, for example, do this:
my @err = `X 2>&1 > some_file`;
How could I achieve the same results without using the shell?
TIA!
kj
normal output went to some file, but any error messages from X were
saved to an array, I could, for example, do this:
my @err = `X 2>&1 > some_file`;
How could I achieve the same results without using the shell?
TIA!
kj