Hello,

I want to know if perl have built-in function to check if a directory is
empty. I can test if a file have zero size with: if(-z $filename) but I want
to know how I can check if a directory is empty. If I try to do this with
the opendir function and do a while interaction the directory always return:
".", "..". I know that the directory is empty but for the script  not
because it always find to entries. I can put: next if $_ eq '.' or $_ eq
'.'; but i have to make a while() to check for the content of the file. I
want to know if exists a module a bult-in function like the (-z $filename).
I will apreciate you help. Thanks!

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to