in reply to Re: splitting every element of an array
in thread splitting every element of an array

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?"

  • Comment on Re: Re: splitting every element of an array

Replies are listed 'Best First'.
Re: Re: Re: splitting every element of an array
by graff (Chancellor) on Feb 26, 2003 at 06:21 UTC
    On the other hand, my impression of the OP was that the person was looking for a more efficient way to write the code -- they weren't really concerned with runtime benchmarks, but rather with how to make the code both flexible and compactly written, allowing it to handle an array of any size without making it bulkier. This is often a more important sense of "efficiency". No problem with xmath's answer in this respect.
      That is also the impression I had