This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't warn about "ambiguous without parens" for ctrl-glob
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Mon, 16 Apr 2012 00:05:52 +0000 (01:05 +0100)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 21 May 2012 23:51:42 +0000 (16:51 -0700)
commitfbdd83da9d18c8503ae64943ae75be034fecb787
tree9a803a04fb08622afb51dcfebea56d867ad8356d
parentd18fc9db3baf21ad19f024c11effd7d65ebb9221
Don't warn about "ambiguous without parens" for ctrl-glob

This fixes the following bogus warning [perl #112456]:

  $ perl -e 'undef *^H'
  Warning: Use of "undef" without parentheses is ambiguous at -e line 1.

Compare to the non-warning variant:

    $ perl -e 'undef *{^H}'
t/lib/warnings/toke
toke.c