in reply to how to get name of hash value itself?

I think I'm missing something here. As I understand what you have written, the name of the hash would be '%addTargetApplication'. Where are you trying to get the hash name from?
  • Comment on Re: how to get name of hash value itself?

Replies are listed 'Best First'.
Re^2: how to get name of hash value itself?
by Binford (Sexton) on Jan 23, 2007 at 21:49 UTC
    Exactly, but I want to get in a string variable 'addtargetApplication' - how do I assign the HASH name to a STRING? I can check to see if any key/value pair in a given hash has value to know whether I need to run that given cmdName.
      It sounds like ikegami and GrandFather have some good suggestions for you, but as far as I understand it, perl doesn't have a get_defined_vars() like php does. Based on what I read in this thread it sounds like going with one of the other suggestions here is your best option.