B
Bryan
I have a string like this:
my $string = "A\tB\tC\t\t\t\t\t\t\n";
When I do:
my @array = split("\t", $string);
I get the following array:
@array = ["A", "B", "C"];
The placeholding '\t's are lost.
How can I keep these so that my array is like this:
@array = ["A", "B", "C", "", "", "", "", ""];
Thanks,
B
my $string = "A\tB\tC\t\t\t\t\t\t\n";
When I do:
my @array = split("\t", $string);
I get the following array:
@array = ["A", "B", "C"];
The placeholding '\t's are lost.
How can I keep these so that my array is like this:
@array = ["A", "B", "C", "", "", "", "", ""];
Thanks,
B