in reply to
Splitting a long string
I have not actually understood your goal but
$temp = substr($line, $i * 1_000, 1000);
[download]
will give you the substrings you seem to want.
Comment on
Re: Splitting a long string
Download
Code
In Section
Seekers of Perl Wisdom