in reply to Fastest split possible
to see it you can use Benchmark to test different approach, like capturing using regexes with g modifier.
But probably, if you are experienceing slowness with split which is fast, you simply have to avoid to accumulate results into @array
Infact if $HugeString is huge, would be probably better to process each element directly like in:
process($_) for split /\n/,$HugeString;
L*
|
|---|