in reply to Complex Data Structure Suggestions Wanted
sub ReadSource{ my $DataSource = shift; my $HashRef = shift; foreach my $ItemID (@Data) { defined $HashRef->{$ItemID} ? push @{$HashRef->{$ItemID}}, $DataSource : $HashRef->{$ItemID} = [$DataSource]; } }
cLive ;-)
edit - nevermind, I forgot about autovivifying. It's late dammit...
|
|---|