This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don’t warn for open local *FH
authorFather Chrysostomos <sprout@cpan.org>
Thu, 8 Dec 2011 21:09:39 +0000 (13:09 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 8 Dec 2011 21:51:19 +0000 (13:51 -0800)
commit240d1b6fec0bdaf633ffc53476ade6401c251270
tree6102f34b2533211749560b6cd954c3ee48a56641
parent564cd6cb6e72228304bae646ccbe28cff6136367
Don’t warn for open local *FH

There is this ancient ‘Precedence problem’ warning that warns for open
followed by a bareword and then an operator that would have made open
into a unary-precedence operator in Perl 4.  It was not taking into
account that the bareword might be a Perl keyword.  In that case it
shouldn’t be warning.
t/lib/warnings/toke
toke.c