Aug 31, 2000, 10:54 PM
Post #2 of 3
Hard to tell. First off, those are not functions but you are telling the perl compiler that you wish to use those libraries/objects.
Second, any conflicts can be resolved for sure by explicitly telling the compiler that you do not want to import any of those module's exported methods and tags by default.
To do this, simply change the way you instantiate the need for the module's.
use strict; # no need to worry about this one because it does not export anything for sure.
Okay, if you need to use some of a modules imported functions, you can do the following:
use ModuleName qw( method1 method2 );
This says that you only wish to permit the import of ModuleName::method1 and ModuleName::method2.
Remember, if you do not import a method that
is required, you cannot use it. So, be careful. Most of the POD documentation should specify proper technique to call a method from a given module.
$ftp = new Net::FTP('domain.com');