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

I have Perl script, which is at remote machine and I am calling it from local system. There is no issue in the perl script. I want to Implement the new functionality, without changing anything in local machine rather I have to do some changes in perl script. I am just posting small part of script.
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; }
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.

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

    This is not a perl problem, it is a JMeter problem. You need to know how to access returned values from scripts executed using autoshell.

    Dum Spiro Spero
Re: OT: Terminate signal from remote to local machine in perl
by nikosv (Deacon) on Oct 19, 2015 at 06:37 UTC
    how do you call the remote script?
      I am calling the remote script by using autoshell property of Jmeter.
        can you provide the link to the relevant documentation?
Re: OT: Terminate signal from remote to local machine in perl
by GotToBTru (Prior) on Oct 19, 2015 at 13:17 UTC

    Crossposted at stackoverflow - it is considered polite to inform us of this so we don't end up duplicating effort already done.

    Dum Spiro Spero