Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: splitting every element of an array

by MarkM (Curate)
on Feb 26, 2003 at 05:55 UTC ( [id://238668]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://238668]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-20 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found