in reply to Re^2: redirecting output in perl
in thread redirecting output in perl
Odd, both
system("echo hello > tmp.log");
and
system("echo hello");
work for me, as they should.
As for creating a file, opening it for write-append does the trick:
{ local *FH; open(FH, '>>', $file) or die("...: $!\n"); }
|
|---|