Help for this page

Select Code to Download


  1. or download this
    my @bits = split //, unpack "b*", $vec;
    
  2. or download this
    use integer;
    my $vec = 42;
    ...
    print " <-- bit positions set\n";
    print join ', ', @bits;
    print " <-- bits \n";