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

my @array = glob("$dir/*");
or
my @array = <$dir/*>;

see glob


ar0n ]