# New Ticket Created by  Tadeusz SoĊ›nierz 
# Please include the string:  [perl #75714]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=75714 >


Looks like "string".trans doesn't work as expected. I'm using the latest
rakudo relase (2010.05) with Parrot 2.4.0.

Output from perl6 REPL (few cases, just to make sure):

> say 'Hello World'.trans('aeo' => 'AEO');
too few positional arguments: 2 passed, 3 (or more) expected
# as suggested on #perl6 on freenode
> say (~'Hello World').trans('o' => '0')
too few positional arguments: 2 passed, 3 (or more) expected
> say 'Hello World'.trans([<a e o>] => [<A E O>]);
too few positional arguments: 2 passed, 3 (or more) expected
> say 'Hello World'.trans(['a', 'e', 'o'] => ['A', 'E', 'O']);
too few positional arguments: 2 passed, 3 (or more) expected

Kind regards,
Ted

Reply via email to