in reply to Not understanding the arrow operator

Oh, but something is being dereferenced. An array of hashes is actually an array of hash references, and so each element fed into your map is a scalar hash reference. You are probably confused because you can say $pages[0]{id}, which contains an implicit arrow operator (i.e. is equivalent to $pages[0]->{id}). See Using References for some details.

Replies are listed 'Best First'.
Re^2: Not understanding the arrow operator
by bradcathey (Prior) on May 18, 2009 at 20:23 UTC

    Thanks kenneth and DStaal. I didn't realize that an AOH was really an array of hash refs with the implicit arrow. Interesting.

    —Brad
    "The important work of moving the world forward does not wait to be done by perfect men." George Eliot