Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: List::MoreUtils before, after and ... between?

by BrowserUk (Pope)
on Feb 21, 2012 at 18:08 UTC ( #955364=note: print w/ replies, xml ) Need Help??

in reply to List::MoreUtils before, after and ... between?

BTW: If the your main concern with your method, is the time taken to perform the reverses, don't even consider it unless your list is huge. Reverse is a particularly efficient operation. 1000 items take a just 2/10s of a millisecond:

@a = 1 .. 1e3;; $t = time; @a = reverse @a; print time() - $t;; 0.000192165374755859 $t = time; @a = reverse @a; print time() - $t;; 0.000243186950683594 $t = time; @a = reverse @a; print time() - $t;; 0.000186920166015625

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Comment on Re: List::MoreUtils before, after and ... between?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2015-11-27 11:08 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (724 votes), past polls