Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    sub unsigned_shift {
        return $_[0] >> $_[1];
    }
    
  2. or download this
    use Data::Dumper;
    
    ...
        use integer;
        return $_[0] >> $_[1];
    }
    
  3. or download this
    package Number;
    
    ...
    my $n = new Number(-4);
    print $n >> 2;