[Omaha.pm] opendir, readdir vs. glob

Dave M dave.nerd at gmail.com
Tue Sep 26 04:13:10 PDT 2006


On 9/25/06, Andy Lester <andy at petdance.com> wrote:
>
> On Sep 25, 2006, at 9:22 PM, Jay Hannah wrote:
>
> > Ok, when glob is this easy to use why have I been using opendir and
> > readdir for years?
>
> Because you didn't know better.
>
>
> > Anyone out there using Perl on
> > Windows? Does glob work there?
>
> Yes, it does.
>

glob is nice and easy. I think the only time I end up using readdir is
when I want to be specific about what I'm globbing, in which case I
mix it with grep.


More information about the Omaha-pm mailing list