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...
In reply to Re: Complex Data Structure Suggestions Wanted
by cLive ;-)
in thread Complex Data Structure Suggestions Wanted
by Ninthwave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |