Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Array Shuffle

by logie17 (Friar)
on Jun 10, 2007 at 23:52 UTC ( [id://620387]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/local/bin/perl
    use strict;
    ...
                    'Sub 1' => $sub1,
                    'Sub 2' => $sub2,
            });
    
  2. or download this
    Benchmark: timing 100000 iterations of Sub 1, Sub 2...
         Sub 1: 28 wallclock secs (27.37 usr +  0.00 sys = 27.37 CPU) @ 36
    +54.01/s (n=100000)
         Sub 2: 40 wallclock secs (32.25 usr +  0.00 sys = 32.25 CPU) @ 31
    +00.78/s (n=100000)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://620387]
Approved by Limbic~Region
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2024-04-25 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found