in reply to Moving Log files remotely
Just a note on error handling:
Maybe it's because I've been writing way too much Java lately, but I've gotten used to making my error messages verbose, at least in the development and testing phases. The first thing I thought when I read
was "Great, but what was the error?" I heartily recommend outputting $! along with your tailor-made error messages, especially when making system calls:error creating \\NTSERVER\TempLogs\020910145659! at testWL.pl line 28.
This will tend to send whatever error the system call farted out into the error Perl dies with.system(@args) == 0 or die "error creating $createDir :\n$!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Moving Log files remotely
by dantie (Initiate) on Sep 11, 2002 at 11:09 UTC | |
by LAI (Hermit) on Sep 11, 2002 at 18:26 UTC | |
by helgi (Hermit) on Sep 12, 2002 at 09:46 UTC |