in reply to Array of Hashes Issue

Seems like the stuff I was looking at today...
An array of 2d arrays:
$arr->[n]->[0] is the correct answer $arr->[n]->[1] is a reference to an array of wrong answers
Try using Data::Dumper to display the the root reference, and you should see what I'm talking about...

Where do you want *them* to go today?

Replies are listed 'Best First'.
Re^2: Array of Hashes Issue
by GrandFather (Saint) on Mar 03, 2007 at 06:44 UTC

    Note that a little syntactic sugar in Perl allows $arr->[n][0] rather than $arr->[n]->[0].


    DWIM is Perl's answer to Gödel