Hi All,

I am trying to find a shorter way of doing
     $x = $x ~ "def"

But I can't seem to master "append"

What am I doing wrong?

Many thanks,
-T


https://docs.perl6.org/routine/append
$ perl6 -e 'my $x="abc"; $x.append("def"); say $x;'

Cannot resolve caller append(Str: Str); none of these signatures match:
    (Any:U \SELF: |values is raw)
  in block <unit> at -e line 1

Reply via email to