[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] opendir, readdir vs. glob



On 9/25/06, Andy Lester <andy@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.