Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-29 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found