Use hashes:
my %quotes; ... push @{$quotes{$aandeel}}, $url2[1]; ... return \%quotes; [download]
PS: see also HASHES OF ARRAYS
In reply to Re: list separation by zwon in thread list separation by robertw