Đặng Thị Thúy Hằng
New member
How do I call a perl module function?
Answer
A module can be loaded by calling
the use function
. #!/usr/bin/perl use Foo; bar( “a” ); blat( “b” ); Notice that we didn’t have to fully qualify the package’s function names. The use function will export a list of symbols from a module given a few added statements inside a module.
Answer
A module can be loaded by calling
the use function
. #!/usr/bin/perl use Foo; bar( “a” ); blat( “b” ); Notice that we didn’t have to fully qualify the package’s function names. The use function will export a list of symbols from a module given a few added statements inside a module.