in reply to Getting files in a directory tree
sub recurse { my $d = shift; opendir D,$d; # who needs error checking anyways while(<D>) { if( -d $_ ){ recurse($_); else{ #regular file } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Getting files in a directory tree
by Roger (Parson) on Mar 04, 2004 at 05:24 UTC | |
|
Re: Re: Getting files in a directory tree
by esskar (Deacon) on Mar 04, 2004 at 05:38 UTC |