Help for this page

Select Code to Download


  1. or download this
    say length @many_strings;  # 1
    
  2. or download this
    17:09 >perl -wE "my @many_strings = ('abc', 'cd', 'e', 'fg', 'hi', 'he
    +llo world'); say length @many_strings;"
    length() used on @many_strings (did you mean "scalar(@many_strings)"?)
    + at -e line 1.
    1
    17:29 >
    
  3. or download this
    use v6d;
    
    ...
    @many-strings.elems.put;
    
    say [+] @many-strings.map: { .chars };
    
  4. or download this
    17:09 >raku 2090_SoPW.raku
    Array[Str].new("abc", "cd", "e", "fg", "hi", "hello world")
    ...
    21
    
    17:09 >