Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use File::Find; my$startDir = shift || '.'; unless (-d $startDir) { die "Directory '$startDir' is not a Directory.\n"; } find(\&processSub, $startDir); sub processSub { print "Found $File::Find::name\n"; } print "Directories I could not search:\n"; #listing of Unix directories I dont have permissions to search
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: opendir in file find
by skyknight (Hermit) on Jul 25, 2003 at 16:53 UTC | |
by BrowserUk (Patriarch) on Jul 25, 2003 at 17:14 UTC | |
by tye (Sage) on Jul 25, 2003 at 17:36 UTC | |
by BrowserUk (Patriarch) on Jul 25, 2003 at 18:11 UTC | |
by tye (Sage) on Jul 25, 2003 at 18:21 UTC | |
| |
by skyknight (Hermit) on Jul 25, 2003 at 17:28 UTC | |
|
Re: opendir in file find
by dga (Hermit) on Jul 25, 2003 at 17:14 UTC | |
|
Re: opendir in file find
by archon (Monk) on Jul 25, 2003 at 16:53 UTC | |
by skyknight (Hermit) on Jul 25, 2003 at 16:56 UTC |