in reply to Help me to run linux command in windows

WTF use external commands for something perl implements with native calls?

opendir DIR, "." or die "$!"; foreach my $dir (grep { -d $_ } readdir DIR) { # Do something with $dir } closedir DIR;

Using File::Find might be an option too


Enjoy, Have FUN! H.Merijn