in reply to Why it takes so much time here?

You can avoid half of the time with your original code by skipping the clean-up using POSIX_exit():

#! perl -slw use strict; use time::HiRes qw[ time ]; use POSIX qw[ _exit ]; use List::MoreUtils qw/any/; print time; my @a = any {$_== 92} 1..100000000; print time; print @a; print time; _exit(0);

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?

Replies are listed 'Best First'.
Re^2: Why it takes so much time here?
by PerlOnTheWay (Monk) on Dec 28, 2011 at 04:11 UTC
    Tried, the result is the same,please try the exact code I provided above...
      ,please try the exact code I provided above...

      No.


      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?