use Data::Dumper; # das kommt nach use strict; und use warnings; print Dumper(\@names); # nach my @names = [...]