There are many other scripts which has to be included in 1.pl which are legacy and I cant modify that.
But when 2.pl executes and if it's successful usually a perl script should return a range of value.
Let me know the range of values that will be returned when the script is executed successfully and the range when it's failure.