I have a text file without header as bellow format:
2017-03-13 00,r1,306011,306011,OK,Allgood. 2017-03-13 01,r2,20369,20369,OK,Allgood. 2017-03-13 02,r3,283751,283751,OK,Allgood. 2017-03-13 03,r4,53017,53017,OK,Allgood.
How to fetch this file to array in perl ? I want to print out them with the looping.
my $s_size = scalar(@array);
for(my $i=1; $i<=$s_size;$i++)
{
print ("$array[$i][0]\n");
print ("$array[$i][1]\n");
}
The expected result:
2017-03-13 00 2017-03-13 01 2017-03-13 02 2017-03-13 03 r1 r2 r3 r4