Help for this page

Select Code to Download


  1. or download this
    use Benchmark ':all';
    
    ...
        ternary  => sub {    int(rand(2)) ? ( $foo = 1 ) :    ( $bar = 1 )
    + },
        if_else  => sub { if(int(rand(2)))  { $foo = 1 } else { $bar = 1 }
    + },
    });