in reply to "Exception" handling and more...

you can catch STDERR from your script or system commands in two ways:
my $errorCode = system(SYSCOMMAND/SCRIPT);
that will give you the error code of the syscommand/script.
my $errorMessage = `SYSCOMMAND/SCRIPT`; # back ticks
will give you the error message maybe checking $! will help you too

goodluck

Hotshot