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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Perl 5.34 is released
by LanX (Saint) on May 23, 2021 at 12:41 UTC | |
by 1nickt (Canon) on May 23, 2021 at 12:53 UTC | |
by LanX (Saint) on May 23, 2021 at 14:29 UTC | |
by jeffenstein (Hermit) on Jun 02, 2021 at 20:55 UTC | |
by LanX (Saint) on Jun 03, 2021 at 13:13 UTC |
In Section
Perl News