have
BEGIN
{
open (STDOUT, '>>/some/log/file')
}
if you want it to file
otherwise do,
open (STDOUT, "<&STDERR");
and with shellstuff, > redirects stdout, 2> redirects stderr so
system ("ls /apa >/dev/null 2>&1");
redirects both outputs to /dev/null
is that what you wanted?
/Jon
Alex Harris
The program I'm writing is going to run under a cron job. Therefore its
important that I catch all exceptions in a file and not have them return to
the command line.
For instance the following:
(system("ls *.r > $plantfile")
raises this exception at times:
ls: 0653-341 The file *.r does no