There is a problem, when you run this it is also bringing the rest of the stuff from the first sub, the ideal thing would be to just print the values been passed from sub first like: return ($arg_1,$arg_2,$val_3,$val_4); and what ever else is in the sub second.