develooper Front page | perl.perl6.users | Postings from September 2017

Need append help

Thread Next
September 29, 2017 17:49
Need append help
Message ID:
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,
$ 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

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About