in reply to Re: trouble acessing array result from GetOptions
in thread trouble acessing array result from GetOptions

I had figured it out but couldnt delete this post, but thanks for your input!!
  • Comment on Re^2: trouble acessing array result from GetOptions

Replies are listed 'Best First'.
Re^3: trouble acessing array result from GetOptions
by davido (Cardinal) on Jul 21, 2006 at 04:31 UTC

    One tip that may help you in similar situations in the future. Whenever you find yourself printing a stringified reference when you expected something else, it's helpful to use Data::Dumper;, and to dump the variable in question into Dumper to see what you get. For example, if you added print Dumper \%options; to your script, you would get a good look at the data structure, and that could help you figure out how to find within it the data you're trying to retrieve.

    Data::Dumper is a great "I wonder what this structure looks like" tool.


    Dave

Re^3: trouble acessing array result from GetOptions
by GrandFather (Saint) on Jul 21, 2006 at 04:26 UTC

    Don't delete the post. Others may benefit from your question. Add an Update at the end if you figure it out or the nature of the problem changes, but don't remove or edit the original material in a way that invalidates answers.


    DWIM is Perl's answer to Gödel