Skip to content

Commit

Permalink
return Perl 6 strings from substr and join. Patch courtesy of felliott++
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jul 23, 2010
1 parent bc3e181 commit 4bf6c0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Any-list.pm
Expand Up @@ -23,7 +23,7 @@ augment class Any {
}

our Str multi method join($separator = '') {
pir::join__SsP($separator, self.flat.eager);
~pir::join__SsP($separator, self.flat.eager);
}

multi method elems() {
Expand Down
2 changes: 1 addition & 1 deletion src/core/Cool-str.pm
Expand Up @@ -131,7 +131,7 @@ augment class Cool {
return Mu;
}

pir::substr(self, $start, $len);
~pir::substr(self, $start, $len);
}

multi method trans(*@changes) {
Expand Down

0 comments on commit 4bf6c0f

Please sign in to comment.