http://www.perlmonks.org?node_id=989684


in reply to list separation

Use hashes:

my %quotes; ... push @{$quotes{$aandeel}}, $url2[1]; ... return \%quotes;

PS: see also HASHES OF ARRAYS