http://qs321.pair.com?node_id=99067


in reply to opendir, readir into @array in one line?

@array = readdir(DIR) if(opendir(DIR, $dir));