so, return statement is invalid for this subroutine. here is an exp how return works main program a = fun1() end sub fun1 fun1 = 30 return end this way a will get value of 30 from subroutine fun1. Let me know if your problem is not clarified Chandra. Quoting -...