On Thursday, April 25, 2002, at 04:14 , Bryan R Harris wrote:
> > Is File::Find a standard module? on my darwin box - where I have made only module change - it was standard as of 5.6.0 > (It is a module, right?) perldoc -m File::Find {perldoc is your friend! start with perldoc perl read all of that.... } # end of autonomous function will let you peek into the full text - and not merely the POD. > I don't know > anything really about modules except that they exist. this is actually a second step forward. That you know they exist - means that all you need to do is resolve if you wish to write the code that has already been written or use the modules that exist already. > Is this method > better than using opendir/readdir/closedir? depends on why you want to read directory blocks to begin with. If all you are doing is converting a 'find trick' to perl then doing the legWork of opendir/readdir/closedir - may not be what you want - but if you all you need to do is my $dir = 'stuffPlaceSomeWhere'; opendir(DIR_FH, $dir) or die "can not opendir $dir: $!"; my @allfiles = grep { /^\./ && -f "$some_dir/$_" } readdir(DIR_FH); closedir DIR_FH; foreach my $file (@allfiles) { #long hiddeous sequence of dark malevolent evil } you came, you peeked, you moved on.... and did not need to use the 'use File::Find;" > And back to the original question, is CPAN good for questions like this? the CPAN is omniscient, but it also is not likely to talk to you. "good morning computer..." - Scottie there are a lot of documents there worth reading, after you have finished reading the list in perldoc perl > What do people usually use it for? deciding that we really have to get a life, rather than recode something we could have just downloaded from the CPAN.... Oh, you meant what 'normal people' usually use it for. I don't know, I only know codeMonkies.... 8-) ciao drieux ----------------- "See the Crown, Beee The Crown." - Miss Congeniality -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]