use strict; use warnings; use Data::Dumper; my @array; # do whatever to populate the array print Dumper \@array;