Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

substr uses p5 style "from the end" syntax #26

Open
coke opened this Issue · 0 comments

1 participant

@coke
Collaborator

< [Coke]> pugs: my $str = "foobar"; say substr($str, *-1);
<+p6eval> pugs: OUTPUT«foobar␤»
< [Coke]> pugs: my $str = "foobar"; say substr($str, -1);
<+p6eval> pugs: OUTPUT«r␤»

See t/spec/S32-str/substr.t for tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.