ansh batra has asked for the wisdom of the Perl Monks concerning the following question:

hi MoNkS
i have written a perl script containing a large number of system commands and want to stop the script as soon as any command fails.
may be with exit status
please help!!!

Replies are listed 'Best First'.
Re: exit status
by GrandFather (Saint) on Oct 31, 2011 at 05:36 UTC

    Are you aware of exit and die?

    True laziness is hard work
    A reply falls below the community's threshold of quality. You may see it by logging in.