use Data::Dumper; my $scalar = 'string'; my @array = ( 1,2,3 ); my %hash = ( a => 1, b => 2 ); print Dumper \( $scalar, @array, %hash );