in reply to Re: can i avoid all these nested hashes
in thread can i avoid all these nested hashes
That's clumbsier, slower, and uses 4 times as much memory.
You're sugesting replacing one line of built-in code
$snp{'Gene1'}{'Trans1'}{'color'} = 'blue';
with
my $snp1 = SNP->new(id => 'SNP1'); my $gene = $snp1->addGene('Gene1'); my $trans = $gene->addTranscript('Trans1'); $trans->setProp(big => 1);
Plus 70 lines of code that does nothing more than replicate built-in functionality. More code, means more bugs.
The very definition of assinine.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: can i avoid all these nested hashes
by graff (Chancellor) on Dec 13, 2010 at 04:32 UTC | |
by Anonymous Monk on Dec 13, 2010 at 09:07 UTC |