Help for this page
opendir (DIR, "/home/costas/test") or die "cannot opendir dir"; foreach $file (readdir(DIR)) { rename($file, lc($file));
my $path = '/home/costas/test'; ... } closedir DIR;