bhushanQA has asked for the wisdom of the Perl Monks concerning the following question:
if "if statement is successful, it should go ahead in the script make it pass", if it entered into else part then my script should return some terminate kind of signal to local machine and should mark the script as failed. I have tried with return and exit statement but it is not that useful, any other way in the Perl to implement my functionality.if($BALANCE_N == $newWalletBalance) { print "Previous wallet + Balance was:$prevWalletBalance New walletBalance is:$newWalletBalan +ce\n"; print "Total cost and +sale price respectively: $totalCostPrice and $totalSalePrice\n\n"; return 0; } else { print "Error: Wallet B +alance in CDR and DB is not matching\n"; return 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OT: Terminate signal from remote to local machine in perl
by GotToBTru (Prior) on Oct 19, 2015 at 13:21 UTC | |
|
Re: OT: Terminate signal from remote to local machine in perl
by nikosv (Deacon) on Oct 19, 2015 at 06:37 UTC | |
by bhushanQA (Sexton) on Oct 19, 2015 at 07:12 UTC | |
by nikosv (Deacon) on Oct 19, 2015 at 07:26 UTC | |
by bhushanQA (Sexton) on Oct 19, 2015 at 07:37 UTC | |
|
Re: OT: Terminate signal from remote to local machine in perl
by GotToBTru (Prior) on Oct 19, 2015 at 13:17 UTC |