Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I have created a complex data structures that works perfectly for my task but don't really know how to even call it. There is a reason I did it that way and not another but can someone tell me what monster I have created? Simplified code with easier variable names below.
my %Data; my $x = 0; foreach my $Name (@Names) { push @{$Data{$Name}->{Rank}}, $Dataset[$x]; push @{$Data{$Name}->{Salary}}, $Dataset[$x]; etc.. }
Btw is there any set asthetic 'rule' when you are creating a software when it comes to loops layout? I mean shoud there be a one line space after the if/foreach and one line space after the last line of code and closing '}'? The code is getting quite large even with savings subs on separate files but I don't want to it look to clutered. thanks for your help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Complex Data Structure
by Neighbour (Friar) on May 21, 2012 at 14:49 UTC | |
by Anonymous Monk on May 21, 2012 at 14:52 UTC | |
by aaron_baugher (Curate) on May 21, 2012 at 18:50 UTC | |
by Anonymous Monk on May 21, 2012 at 16:08 UTC | |
|
Re: Complex Data Structure
by kennethk (Abbot) on May 21, 2012 at 14:48 UTC | |
|
Re: Complex Data Structure
by Anonymous Monk on May 21, 2012 at 14:39 UTC |