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.
In reply to Complex Data Structure by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |