Subject: | regex subst with escape seems to break parsing (a little) |
MVP to reproduce:
---8<---
use strict;
use warnings;
use standard;
sub a1 {
map { s/\\// } @_;
#/
}
1;
---8<---
Seems to choke on the chosen s delimiter and the backslashes. Complains with empty message:
---8<---
File 'bug-mvp.pl' does not pass Standard Perl.
Parser says:
---8<---
Changing the char after comment ('/') to something else, the complaint vanishes.
Also using s/// without backslash before delimiter has no problem.
Reproducable with '!' and '/'
Tried only these.
Oh, and:
---8<---
perl -v
This is perl 5, version 28, subversion 1 (v5.28.1) built for MSWin32-x64-multi-thread---8<---
sidenote: Didn't find a possibility to get the module to accept "shared variables" for "threads" in attribute format like "my $var :shared;". "share($var)" is accepted, though, and working fine.
Amazing work on this module, looking forward to using it more...