in reply to Setting up conditional check for printing out keys from array/hash ref

You can use ref to tell you whether a reference points to a hash or an array.
  • Comment on Re: Setting up conditional check for printing out keys from array/hash ref