Pugs.hs icon indicating copy to clipboard operation
Pugs.hs copied to clipboard

substr uses p5 style "from the end" syntax

Open coke opened this issue 12 years ago • 0 comments

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

coke avatar Jan 18 '13 18:01 coke