Leonid L schreef: > Many of the proposed solutions I've found on Google do not work for > me, perhaps because they assume Unix/Linux host. I need a sub that > will reliably tell me whether a given directory is empty (I am running > Perl on Win XP, NTFS file system). Please give your implementation a > quick test on a similar platform before posting.
perldoc -f glob For example: perl -wle "my @e=<C:/temp/{.*,*}>; print( -d $_ ? qq{$_/} : $_) for @e" -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/