> a) $loggedin is scalar
True
> b) $loggedin is used as a hash key
True
> c) info is a hash
True
> d) since we retrieve on thing from the hash, there is a '$' in front of info
Since you are refering to one element of the hash there is a $.

> e)  $info{$loggedin} is enclosed inside @{}
True 
> f) @{} is a way of derefencing an array reference.
True
> g) $info{$loggedin} is inside @{},  so we have @{$info{$loggedin}}
> 
> h) does @{$info{$loggedin}}  evaluate to an array?  That would confuse me 
> because {cell} imposes {} on an array?
Can't help you with the {cell} someone else?

> i) does @{$info{$loggedin}}{cell} retrieve something from a hash?  Also a 
> confusion, because of the @

if ( ( @{ $info{ $loggedin } } {cell} ) and ( @ { $info{ $loggedin } }
{ line } eq 'dc'))
whitespace is your friend.
This doesn't make any sense to me.
i don't see how {cell} can be anything.
Do you perphaps have an extra } is it actually written as 
@{$info{$loggedin}{cell}} 

@{$info{$loggedin}} refers to the array held in the value of $info{$loggedin};
Example

$info{$loggedin}=[1,2,3,4,5];
if i wanted to address that array I could write
foreach ( @{$info{$loggedin}} ) {
...
}

HTH,
Paul

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to