Question: Assuming that if some function I am going to call later, would do a require and import on that file, will it be, or will it not be the case, that a package with the name $name will exists?That highly depends on what you mean by "a package with the name $name".
Although Perl has the keyword package, it doesn't have a first or even second class object which is a "package". A "package" is just a bunch of things sharing a name space. But you don't need to package keyword to put something in the name space. And, for most programming, any namespace always exists, with first putting something in it.
Of course, the package keyword does have some visible compile time effects; it sets an entry in %::; but %:: will be populated even if you don't have nay package keyword in your program.
In reply to Re: Finding out whether a module contains a certain package
by JavaFan
in thread Finding out whether a module contains a certain package
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |