Stuart White wrote:

> Ok, I think I get it.  the $_ is printing the player
> name, (though I don't know why I'm not using $1

$1 is a special-purpose variable used only in relation to regexes.
The default variable for looping structures will be contained in $_.

>
> instead for that) and the $linehash{$_} means, in
> English, "the value of the key

No.  It is the value of the element of %linehash referenced by the
key contained in $_.
An element is what holds the value.
The hash name, in conjuction with the key, point to the value.

Please do not confuse keys with the data to which the point.  Keys
are not data in themselves, but program structures which point to
data.

I know that this may seem like an abstruse distinction, but it will
help if you focus your concept of a hash key.  It correlates mst
closely with the index in an array, not with the data contained
therein.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to