Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

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

Description

@coke

< [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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions