Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: How Perl can push array into array and then how retrieve [Benchmark]

by kcott (Archbishop)
on Dec 02, 2021 at 08:14 UTC ( #11139306=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    sub with_map {
        my @f = map [$_+2, $_+1], 0 .. 5;
    }
    
  2. or download this
    # 0 .. 5
                 Rate with_map with_for
    ...
              Rate with_map with_for
    with_map 745/s       --     -23%
    with_for 968/s      30%       --
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2022-07-07 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?