Hi all.
I'm using the following structure in my perl script:
eval { File:ath::rmtree($dir) };
if ($@) {
do_somth();
}
But sometimes, the script prints to STDOUT/STDERR following warnings/errors:
Can't remove directory /some/dir: Directory not empty at script.pl line XXX
It is required to trap such warnings/errors, and NOT to print then to STDOUT/STDERR
Thanks.
I'm using the following structure in my perl script:
eval { File:ath::rmtree($dir) };
if ($@) {
do_somth();
}
But sometimes, the script prints to STDOUT/STDERR following warnings/errors:
Can't remove directory /some/dir: Directory not empty at script.pl line XXX
It is required to trap such warnings/errors, and NOT to print then to STDOUT/STDERR
Thanks.