Help for this page

Select Code to Download


  1. or download this
        my $sizeofstring = length($string);
    
  2. or download this
        my $sizeinchars = chars($string);
    
  3. or download this
        my $sizeinelems = elems(@array);
    
  4. or download this
        my $sizeinchars = chars(@array);
    
  5. or download this
        my $ref = [1,2,3];
        my $sizeinelems = elems($ref);
    
  6. or download this
        @array.elems
        $string.chars
        @array.chars
        $ref.elems
    
  7. or download this
        $string.bytes
        $string.codepoints
        $string.graphemes
        $string.letters
    
  8. or download this
        $string.columns
    
  9. or download this
        $string.pixels