## name Correct packagename, when starting with minus
## failures 0
## TODO This isn't working yet
## cut
use Foo::Bar;
-Foo::Bar->test();
The errormessage in this case is "Use of "::Bar" without including "::Bar" Without importing a package, it is unlikely that references to things inside it even exist.", so it appears that the minus confuses the code that computes the packagename. If the minus is changed to a +, the test passes.
A testcase to illustrate the problem:
The errormessage in this case is "Use of "::Bar" without including "::Bar" Without importing a package, it is unlikely that references to things inside it even exist.", so it appears that the minus confuses the code that computes the packagename. If the minus is changed to a +, the test passes.