# bad @array = `ls $dir`; # better @array = glob("$dir/*"); # i usually use what you already had opendir(DIR,"$dir"); @array = readdir(DIR); closedir(DIR);
In reply to Re: opendir, readir into @array in one line?
by MZSanford
in thread opendir, readir into @array in one line?
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |