in reply to Comparing Directories

Two simple steps:

update: There are quite a few nodes on PerlMonks about comparing arrays. Do use the search.

Replies are listed 'Best First'.
Re^2: Comparing Directories
by why_bird (Pilgrim) on May 01, 2008 at 10:04 UTC
    opendir, readdir and closedir---how did I never know about those? I currently do quite a lot of reading in the contents of directories, and so far I've always done it by endless constructs like
    $dir_list=`ls -1 */*`; @files=split(/\n/,$dir_list);
    D'oh! and thanks! why_bird
    ........
    Those are my principles. If you don't like them I have others.
    -- Groucho Marx
    .......