Chas. Owens wrote:
On Jan 21, 2008 2:11 PM, Chas. Owens <[EMAIL PROTECTED]> wrote:
snip
snip
So, if I understand correctly  $data{$snp} is a value in a hash.  That value
is a scalar that happens, in this case, to be a reference to an anonymous
hash?  The key of this anonymous hash is $genotype?  It does not seem like
the simplicity of this lines relates the complexity of the object:

$data{ $snp }
$data{ $snp }{ $genotype }
snip

I think I understand what you are saying, and it seems correct.  I am
going to restate everything about $data{$snp}{$genotype} just to make
sure we are on the same page.

%data is a hash.
$snp is a scalar
$data{$snp} yields a hash ref
$data{$snp}->{$genotype} (aka $data{$snp}{$genotype}) yields a scalar value
snip

Oops, I left out

$snp is a scalar that holds a (possible) key to %data.
$genotype is a scalar that holds a (possible) key to $data{$snp}.

Being picky:

  $genotype is a scalar that holds a (possible) key to %{$data{$snp}}

Rob


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


Reply via email to