$x = function2(function1($y)); sub function2 { ...dosomething... } sub function1 { ...dosomethingelse... }