My First Module

Directory::Tools. A set of subroutines which determine whether, from a given directory, you have certain specified subdirectories, whether they are empty or not,etc.

  use Directory::Tools qw(kill_subdirectories);
  @subdirs_matched = check_dir_structure('subdir1', 'subdir2');
  @subdirs_added   = add_subdir('subdir4', 'subdir5');
  @subdirs_added   = add_subdir_only_if_new('subdir6', 'subdir7');
  @subdirs_killed  = kill_subdirs('subdir9', 'subdir10');

Previous Back to start of show Next
Slide: 27 myfirstmod © 2003 James E. Keenan