Packages & Modules
The Use Function
- A module can be loaded by calling the use
function (See also
require
)
use Foo;
bar( "a" );
blat( "b" );
- Notice that we didn't have to fully qualify the package's function names?
- Q: How can Perl enable symbols in one namespace to also be available in
another namespace?
- A: We need to modify the package a little to make it "export"
a list of symbols...