sub anotherfunc { # .. code here myfunc($data) } func1(anotherfunc())