in reply to Re: Complex Data Structure
in thread Complex Data Structure

Great exactly what i was looking for. One thing - why should I initilise it with $Data and not %Data?

Replies are listed 'Best First'.
Re^3: Complex Data Structure
by aaron_baugher (Curate) on May 21, 2012 at 18:50 UTC

    No reason I'm aware of; just a matter of personal preference. I tend to use a hash variable rather than a hashref at the top level to save typing arrows ( $data{level1}{level2} instead of $data->{level1}{level2} ) unless it's a reference to an object or I'm going to be passing it as a reference to a lot of functions or something, in which case I'll save a little typing by passing $data instead of \%data. So it really just depends on how I'll be using it.

    Aaron B.
    Available for small or large Perl jobs; see my home node.

Re^3: Complex Data Structure
by Anonymous Monk on May 21, 2012 at 16:08 UTC
    Stupid question I get it.. Thanks