in reply to return data from a subroutine reference...
You can treat an anonymous sub as any other - everything on the right hand side of the assignment operator (=) is just some jibberish to call the subroutine. Any return values you get are still passed back the same way.