Is this also technically correct, even though it clearly shouldn't match?

perl6 -e '"foo" ~~ /(.*)+\:/'  # hangs

In either case, going into an infinite loop is not exactly DWIM. 


> On 20 Sep 2016, at 9:12 PM, Will Coleda via RT <perl6-bugs-follo...@perl.org> 
> wrote:
> 
> On Tue Sep 20 06:06:59 2016, c...@zoffix.com wrote:
>> Here's a much shorter way to reproduce it:
>> 
>> perl6 -e '"foo" ~~ /(.*)+/'  # hangs
>> 
>> While my previous explanation for why this occurs makes sense, it's
>> worth noting this behaviour is not observed in Perl 5, for example:
>> 
>> perl -e '"foo" =~ /(.*)+/'  # does not hang
> 
> This sounds like a dupe of #75586
> 
> -- 
> Will "Coke" Coleda

Reply via email to