in reply to RE: A minor epiphany with grep and map
in thread A minor epiphany with grep and map
@$self->{ITEMS} @$x->{y}
$self->{ITEMS} (or $x->{y}) returns a reference or pointer to an array of values. The @-operator dereferences it to be used by the map and grep functions.
This could have been much more clearly written as:
@{ $x->{y} }But if wishes were fishes... :) My point is that there's nothing magical about this, and doesn't really require an "examination."
Hope this helps, or at least makes sense with all that chaos out there.
Alakaboo
I am the lurker that spams in the night.
(UPDATE: I understand what chip is saying, and I'm not trying to be a smartass. I think he's reading into the code a little too deeply. Just wanted to clarify things for some of the less experienced readers. :P)