I believe the original poster asked for a more efficient means of doing the split, not a method of doing the split using neater code. I'm certain that Benchmark.pm would show your code executing slower than the original.
UPDATE: After reading the original in the context of the responses to this node, I think I agree that the original poster meant effective not efficient. As in, "what is a more effective method of writing this code?"
In reply to Re: Re: splitting every element of an array
by MarkM
in thread splitting every element of an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |