Skip Menu |
Report information
Id: 128928
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: zefram [at]

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

From: Zefram <zefram [...]>
To: rakudobug [...]
Subject: [BUG] Regex returned by method has duff .perl
Date: Sun, 14 Aug 2016 16:07:21 +0100
Download (untitled) / with headers
text/plain 319b
Show quoted text
> (method { /foo/ })(2).perl
method /foo/ This .perl result does not parse as Perl code, and is therefore faulty. Of the situations that I've tried, this only happens to Regex values (not Int, Str, Pair, etc.), and only when the called function is declared as a method (not sub, bare block, or pointy block). -zefram
Subject: Re: [perl #128928] [BUG] Regex returned by method has duff .perl
To: perl6 via RT <perl6-bugs-followup [...]>
Date: Mon, 15 Aug 2016 19:47:06 +0100
From: Zefram <zefram [...]>
Download (untitled) / with headers
text/plain 106b
Additional: this also happens with submethods: Show quoted text
> (submethod { /foo/ })(2).perl
submethod /foo/ -zefram

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