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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
The hash ref hits!--more--You are confused
by chip (Curate) on Jul 28, 2000 at 23:09 UTC | |
by mwp (Hermit) on Jul 28, 2000 at 23:33 UTC |