use Data::Dumper; my @array = #something or other . . . print Dumper @array; print Dumper \@array; #for a different form of output (array reference) print Dumper $alsoanarrayreference; print Dumper $PrettyMuchAnything #because the output can be enlightening