Subject: | not working with perl 5.16 |
Date: | Wed, 9 Aug 2017 13:43:09 -0700 |
To: | bug-Test-Compile [...] rt.cpan.org |
From: | Sergiy Zuban <s.zuban [...] gmail.com> |
perl 5.16.3 seems to have a bug in pp_hot.c, in S_method_common() proc.
Attempt to call a method on a package that starts with semicolons fails.
$ perl -E 'say ::foo->require'
Can't call method "require" without a package or object reference at -e
line 1.
With perl 5.18.2 it works fine:
$ perl -E 'say ::foo->require'
Can't locate object method "require" via package "::foo" (perhaps you
forgot to load "::foo"?) at -e line 1.
Sergiy Zuban