Help for this page

Select Code to Download


  1. or download this
    my @intarray = unpack 'c*', "perl string";
    
    my @intarray = map ord, split //, "perl string";
    
  2. or download this
    my $integer = vec "perl string", $i, 8;
    
  3. or download this
    $something = substr("a string", 4, 1) & 2**3;
    
  4. or download this
    $something = atoi("r") & 2**3;