Help for this page

Select Code to Download


  1. or download this
    # substr no good, this is a simplified regexp
    while( ($b, $c) = $a =~ /(.)(.)/g ){
      #do stuff
    }
    
  2. or download this
    $p = pos($a) ? 1 : 0;