Subject: | map and regexp confuse PPI? |
This looks like it would be a PPI bug which is why I am reporting it here.
#!/usr/bin/perl
map /=["']?/, "foo";
sub { "executing..." };
$ perlver /tmp/test.pl
--------------------------------------------
| file | explicit | syntax | external |
| -------------------------------------------- |
| /tmp/test.pl | ~ | v5.12.0 | n/a |
| -------------------------------------------- |
| Minimum explicit version : ~ |
| Minimum syntax version : v5.12.0 |
| Minimum version of perl : v5.12.0 |
--------------------------------------------
$ perlver --blame /tmp/test.pl
------------------------------------------------------------
File : /tmp/test.pl
Line : 3
Char : 17
Rule : _yada_yada_yada
------------------------------------------------------------
...
------------------------------------------------------------
libppi-perl - module to parse, analyze and manipulate Perl code
Debian/testing (main/perl): 1.213-1
libperl-minimumversion-perl - module to determine minimum required
version of perl required
Debian/testing (main/perl): 1.26-1
$ perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
(with 50 registered patches, see perl -V for more detail)