Skip Menu |
Report information
Id: 131925
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at]

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

Subject: Smartmatching a junction against a regex object vs m// (‘a’|‘b’ ~~ m/‘a’/)
Download (untitled) / with headers
text/plain 255b
Code: say so $*DISTRO.Str|$*KERNEL.Str ~~ /linux/ Result: True Code: say so $*DISTRO.Str|$*KERNEL.Str ~~ m/linux/ Result: False I'd expect the result to be identical in both cases. IRC log:
Download (untitled) / with headers
text/plain 213b
The problem only appears if `m//` is used directly as the RHS of `~~`: $_ = 'a' | 'b'; say m/a/; # any(「a」, Nil) say $_ ~~ m/a/; # False say $_ ~~ { m/a/ }; # any(「a」, Nil)
Download (untitled) / with headers
text/plain 241b
<smls> bisectable6: say <a b>.any ~~ m/a/; <bisectable6> smls, On both starting points (old=2015.12 new=e3e29c5) the exit code is 0 and the output is identical as well <bisectable6> smls, Output on both points: «False»

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