okol, I appologize. I didn't notice the opening parenthesis. But still, when I had it, it gave me a syntax error saying, <'out=$' unexpected>. But anyway, i used your idea of using exit status of the perl script and checking the status in the shell... even though you don't recommended. That worked for me. Thanks much for your help... and everybody elses.