Hello All,
In shell script file, I can call another program & checked the exit status.
Like:
./prog2 if [ $? -ne 0 ] then echo "Error" exit fi
How to do in perl?
Looks like you got your answer, but I want to add one more point. Remember, Perl is a programming language, not a shell scripting language. Perl doesn't need 50 little programs to do it's work. It has it's own internal methods for solving those programs. More often than not, shelling out is a mistake.
When you need to know how to do something The Perl Way(TM), just ask...
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>