I have this command that reads logfiles.However, if the command isn't successful it gives me a standard error.
my @logData= `program1 -log $data1 $data2`; The error looks like this: program1: '//mnt/leah/dir/': The system cannot find the file specified. *How do I read that error for the string "The system cannot find the file specified" and skip the file if it doesn't exist??? I have looked in books, but I haven't found very good examples. I have tried to take @logData and put it to a file handle (PH, $logData) so I can read it in a while loop. Suggestions much appreciated. Thanks in advance! -T