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) {
$
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:
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
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
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