Help for this page

Select Code to Download


  1. or download this
    for (0..($strLen-1))
    
  2. or download this
    for ( 0..$strLen/2 )
    
  3. or download this
    for (0..($strLen - 1))
      {
    ...
      return wantarray  ? ($cycleLen, substr $str, 0, $cycleLen)
                        : $cycleLen if $+[0] == $strLen;
      }
    
  4. or download this
    for ( 1..$strLen/2 )
      {
    ...
      return wantarray  ? ($_, substr $str, 0, $_) : $_
        if $copy eq $str;
      }