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