in reply to passing array

Dereference
&my_subroutine(@{ $tmp[0] });
The @{ } tell perl to treat the scalar inside as an array.