opendir(DIR."$dir") or die "Could not open $dir: $!"