Carl MXXsak (via RT) wrote: > # New Ticket Created by "Carl Mäsak" > # Please include the string: [perl #60092] > # in the subject line of all future correspondence about this issue. > # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60092 > > > > Chris Dolan writes the following to p6u: > > I'm learning about Match objects today. I can't assign $/ to a > variable or pass it to a method.
This sounds a lot like [perl #57094] [BUG] infix:= converts a PGE::Match to a Str, not a Match > Is this a bug, or am I just > confused? I get the following results. In both cases, $/ gets > stringified instead of remaining as a Match instance. > > % ./perl6 -e 'if ("f" ~~ m/f/) { my Match $m = $/; }' > Type check failed > [...] > > or > > % ./perl6 -e 'sub foo(Match $m) { say $m; }; if ("f" ~~ m/f/) { foo($/); }' > Parameter type check failed > [...] > > % ./perl6 -v > This is Rakudo Perl 6, revision 32120 built on parrot 0.8.0-devel > for darwin-thread-multi-2level. -- Moritz Lenz http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/