Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Concatenate or Join?

by johngg (Canon)
on Nov 12, 2012 at 20:38 UTC ( [id://1003505]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
       concat => sub { my $ret; $ret .= $_ for @arr; return $ret; },
       join   => sub { my $ret = join q{}, @arr; return $ret; },
       } );
    
  2. or download this
    $ ./spw1003500
             Rate concat   join
    concat  994/s     --   -70%
    join   3310/s   233%     --
    $
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found