This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(perl #133850) warn on ${time} even in sub-parse
authorTony Cook <tony@develop-help.com>
Wed, 29 May 2019 01:46:01 +0000 (11:46 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 11 Jun 2019 06:08:36 +0000 (16:08 +1000)
commit10724e88639b32d6d6f1024535e3f7f7aee4fb9e
tree46ad816fa487df51ce3b0785f15679dff4c71565
parenteec88220688fefa843e3f46b6b454fe090ee7568
(perl #133850) warn on ${time} even in sub-parse

Code like:

  $a = ${time}

warns with:

  Ambiguous use of ${time} resolved to $time at ...

but:

  s/^/ ${time} /e

didn't, since the parser is in a special state in sub-parses.
t/lib/warnings/toke
toke.c