Hi
Suppose you just wanted to do files i.e. excluding directories?
Mazza
> -----Original Message-----
> From: Sascha Kersken [mailto:[EMAIL PROTECTED]]
> Sent: 30 July 2001 12:47
> To: COLLINEAU Franck FTRD/DMI/TAM
> Cc: [EMAIL PROTECTED]
> Subject: Re: counting files of a directory
>
>
> Hi!
>
> I'm not aware of a FUNCTION to do it, but this should work:
>
> DIR = opendir ("path/to/dir");
> $count = 0;
> while (readdir DIR)
> {
> $count++;
> }
>
> - afterwards, $count's value is the number of directory entries.
>
>
> Sascha
>
> ----------
> >Von: COLLINEAU Franck FTRD/DMI/TAM
> <[EMAIL PROTECTED]>
> >An: "Perl (E-mail)" <[EMAIL PROTECTED]>
> >Betreff: counting files of a directory
> >Datum: Mon, 30. Jul 2001 13:34 Uhr
> >
>
> > Hello!
> >
> > Is there a function which count the number of files in a directory ?
> >
> > Thanks
> >
> > Franck
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>