I am having one of those monday mornings!!!! Can some please tell me why the following 2 lines print the string with the array position at the begining of each line.
eg
0Hello
1I am well
2How are you
.
.
.
I know it is simple but i cant see it.
$FileString doesnt contain the index at all.
my @Lines = split(/\n/,$FileString);
print "$Lines[$i]\n", $i++ while ($i < $LineNum);
eg
0Hello
1I am well
2How are you
.
.
.
I know it is simple but i cant see it.
$FileString doesnt contain the index at all.
my @Lines = split(/\n/,$FileString);
print "$Lines[$i]\n", $i++ while ($i < $LineNum);