I'm trying to get rid of a warning message, which has the following explanation in perldiag
:
Bareword "%s" refers to nonexistent package (W bareword)
You used a qualified bareword of the form "Foo::", but the compiler saw no other uses of that namespace before that point. Perhaps you need to predeclare a package?
(The problem is that I have a subroutine which blesses an object into a package which is declared later)
I want to follow the advice in the manual page, by "predeclaring" the package, but I can't figure out how to do this. What is the syntax to predeclare a package in Perl?