in reply to Re^2: passing reference to subroutinein thread passing reference to subroutine
It's worth the time to have a look at perlreftut -- the simple reference tutorial :)