Re: $File::Find and no_chdir

2007-09-29 Thread Dr.Ruud
schms schreef: > opendir DH, $DIR or die "Cannot open '$DIR' $!"; > print map "$DIR/$_\n", readdir DH; > closedir DH; Looks very 'global variables' oriented to me. Compare to: { opendir my $dh, $dir or die "Cannot open '$dir': $!"; while (my $e = readdir $dh) { $

Re: $File::Find and no_chdir

2007-09-27 Thread schms
On 27 Sep., 15:01, [EMAIL PROTECTED] (Paul Lalli) wrote: > On Sep 27, 6:00 am, [EMAIL PROTECTED] (Schms) wrote: > > > I have a UNIX directory $DIR which contains a lot of files and > > subdirecotires. Now, I would > > > like to list all files and subdirectories in $DIR only. That means, > > $File:

Re: $File::Find and no_chdir

2007-09-27 Thread Paul Lalli
On Sep 27, 6:00 am, [EMAIL PROTECTED] (Schms) wrote: > I have a UNIX directory $DIR which contains a lot of files and > subdirecotires. Now, I would > > like to list all files and subdirectories in $DIR only. That means, > $File::Find should not > > go into any subdirectories of $DIR and list the

Re: $File::Find and no_chdir

2007-09-27 Thread John W. Krahn
schms wrote: Hi, Hello, I have a UNIX directory $DIR which contains a lot of files and subdirecotires. Now, I would like to list all files and subdirectories in $DIR only. That means, $File::Find should not go into any subdirectories of $DIR and list the files and subdirectories there as wel

$File::Find and no_chdir

2007-09-27 Thread schms
Hi, I have a UNIX directory $DIR which contains a lot of files and subdirecotires. Now, I would like to list all files and subdirectories in $DIR only. That means, $File::Find should not go into any subdirectories of $DIR and list the files and subdirectories there as well. So far, I have not