in reply to Re: Need Help With Syntax for (Complicated for Me) Data Structure
in thread Need Help With Syntax for (Complicated for Me) Data Structure

Hi,

I just want to say that perhaps the biggest thing I learned was the need to surround the array with braces. I never noticed that before! And I saw it in all three replies to my post.

I am wondering if you know any reference that discusses this syntax.

Thanks again,

Tony
  • Comment on Re^2: Need Help With Syntax for (Complicated for Me) Data Structure

Replies are listed 'Best First'.
Re^3: Need Help With Syntax for (Complicated for Me) Data Structure
by GrandFather (Saint) on Jan 31, 2007 at 20:17 UTC

    "complicated" data structures are really simple data structures that refer to other data structures. That is, generally you are dealing with scalars, arrays (that can only store scalars) or hashes (that can only store scalars). The trick is that a scalar can store a reference to other things. HoHoA and all the other variants work by storing references so the good oil you are looking for is References quick reference from the Tutorials section.


    DWIM is Perl's answer to Gödel