opendir(DIR,"/home"); my @array = readdir(DIR);