in reply to Determining the type of a subroutine parameter

You can use ref or Scalar::Util::reftype.