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]