A Regular Module Exports Its Subroutines

Directory::Tools is a regular (i.e., non-object-oriented) Perl module. It exports subroutines either automatically or on specific request. Those subroutines become directly callable in the main package; they are not method calls.

    package Directory::Tools;
    use Exporter;
    @ISA = ("Exporter");
    @EXPORT    = qw( check_dir_structure
                     add_subdir
                     add_subdir_only_if_new );
    @EXPORT_OK = qw( kill_subdirs           );
    $VERSION = 0.4;

Previous Back to start of show Next
Slide: 28 directory_tools_interface © 2003 James E. Keenan