<$dir/*> is exactly the same as glob "$dir/*", just spelled differently. I spell glob() explicitly so there isn't confusion (in other programmer's minds) about when I mean readline() or glob(). Since the stated code went to efforts to remove ., .. and the dot files it is perfectly valid (and for this purpose) clearer to only code for that.
If the code needed to handle dot files then it makes sense to use readdir. That just isn't the case here and it adds unnecessary obfuscation.
In reply to Re: Re: Re: Re: Opening Unknown Filenames
by diotalevi
in thread Opening Unknown Filenames
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |