Help for this page

Select Code to Download


  1. or download this
    $x = $y * 16;
    $x = $y << 4; #Much faster
    
  2. or download this
    use Benchmark;
    use integer;
    ...
     multiply => sub { my $y = 3; my $x = $y * 16 },
     shift => sub { my $y = 3; my $x = $y << 4 } }
    );