sub make_lists {
my @all_dem_arrays;
#bullshit creation of dynamically named arrays
for(@_){
my @{$_} = qw/1 2 3/; # this is your non-statically named array
push @all_dem_arrays, \@{$_}; # this is you pushing a reference to it
}
return @all_dem_arrays; # this is you returning a list of those reference
}
my @lists = make_lists('blondes', 'brunettes', 'redheads');
# and here you are proving that it worked
foreach my $list ( @lists ){
print join(', ' => @{$list}), "\n";
}