http://qs321.pair.com?node_id=11132921


in reply to Re^2: Perl 5.34 is released (bad code example)
in thread Perl 5.34 is released

"qr/{,3}/ was always allowed"

Nope.

$ perl -E 'say $]' 5.032001
$ perl -Mstrict -wE 'my $str = "foobar"; say 1 if $str =~ /[o]{1,2}/' 1
$ perl -Mstrict -wE 'my $str = "foobar"; say 1 if $str =~ /[o]{,2}/' Unescaped left brace in regex is illegal here in regex; marked by <-- +HERE in m/[o]{ <-- HERE ,2}/ at -e line 1.


The way forward always starts with a minimal test.