http://qs1969.pair.com?node_id=26928


in reply to Re: Complicated Nested Data Structures
in thread Complicated Nested Data Structures

Sorry, I tend to think a little different than most people and assume the wrong things. That line of code assigns a reference to an array which contains an email message. I want to be able to print that. I hope that makes more sense.

- p u n k k i d
"Reality is merely an illusion, albeit a very persistent one." -Albert Einstein

  • Comment on RE: Re: Complicated Nested Data Structures

Replies are listed 'Best First'.
RE: RE: Re: Complicated Nested Data Structures
by jlp (Friar) on Aug 09, 2000 at 06:41 UTC
    Gotcha. No problem :) If all you want to do is print the contents of an array reference, just do:

    print @{ $arrayref };

    So, in your example, all you should have to do is:

    print @{ $msgs[$command]->{message} }

    assuming I understand the way your datastructure is setup. Hope that helps.