Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Is undef list assignment a no-op?

by Tux (Canon)
on Mar 25, 2011 at 12:58 UTC ( #895474=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Benchmark qw(cmpthese);
    ...
        "skp" => q[ sub{ my $x = $_[1]         }->($a1, $b1) ],
        "var" => q[ sub{ my ($unused, $x) = @_;}->($a1, $b1) ],
        };
    
  2. or download this
             Rate  var  und  skp
    var 1694915/s   -- -27% -41%
    und 2325581/s  37%   -- -19%
    skp 2857143/s  69%  23%   --
    
  3. or download this
    === base/perl5.00307    5.00307  i686-linux
    Missing $ on loop variable at /media/Tux/perls/lib/strict.pm line 90.
    ...
    var 2380952/s   -- -18% -30%
    und 2898551/s  22%   -- -14%
    skp 3389831/s  42%  17%   --
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2021-10-20 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (79 votes). Check out past polls.

    Notices?