I have an app which requires 4 separate chunks of input data, with each dataset being separated by a series of special characters, i.e.111 or xxx or some such.
I know how to split a string into separate variables, but since the datasets here will be considerably larger (10,000 chars), I have the feeling I need something a little more suited for that amount of data. I am currently pondering
The only problem is, I would like for each 'chunk' to be in array format. Any suggestions? TIA
Joe
A clever person solves a problem.
A wise person avoids it.
-- Einstein
I know how to split a string into separate variables, but since the datasets here will be considerably larger (10,000 chars), I have the feeling I need something a little more suited for that amount of data. I am currently pondering
Code:
@data=split(/111/,$infile);
$datachunk1=$data[0];
$datachunk2=$data[1]; etc...
Joe
A clever person solves a problem.
A wise person avoids it.
-- Einstein