Skip Menu |
Report information
Id: 78874
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at]>

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Subject: [BUG] Can't do .trans on result of qx[] in Rakudo
Date: Sat, 6 Nov 2010 19:47:58 +0100
To: rakudobug [...]
From: Carl Mäsak <cmasak [...]>
Download (untitled) / with headers
text/plain 546b
$ perl6 -v This is Rakudo Perl 6, version 2010.10-10-g142d220 built on parrot 2.9.1 r49786 Copyright 2008-2010, The Perl Foundation $ perl6 -e 'my $s = qx[echo foo]; say $s.trans("o" => "u")' too few positional arguments: 2 passed, 3 (or more) expected in main program body at line 1 This is a recurring bug with many shapes and forms, most of which have been fixed already. I guess qx[] returns something that's a Parrot string, not a Perl 6 string, and Parrot strings happen to have a .trans method too, but it has a different signature.
RT-Send-CC: perl6-compiler [...]
Download (untitled) / with headers
text/plain 142b
Hello, This bug can be marked as resolved. It works in current Rakudo and has a passing test in S02-literals/quoting.t Cheers, Fitz Elliott

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at