#!/usr/bin/perl
use strict;
use warnings;
my @array = (
[1,2,3,4],
[5,6,7,8]
);
my @second_row = @{ $array[1] };
print "Second row: [@second_row]\n";
getting output as : Second row: [5 6 7 8]
but i need it as : Second row: [5, 6, 7, 8]