[EMAIL PROTECTED] (Johan Danielsson) writes:

> > +           local @list = glob($relative_dir);
> 
> Please don't use glob. It's broken.

Sorry, I don't understand how )-:

I found two QAs in the Perl FAQ about glob:

[...]

        By default glob() forks csh(1) to do the actual glob
        expansion, but csh can't handle more than 127 items and so
        gives the error message Argument list too long. People who
        installed tcsh as csh won't have this problem, but their users
        may be surprised by it.

        To get around this, either do the glob yourself with
        Dirhandles and patterns, or use a module like Glob::KGlob, one
        that doesn't use the shell to do globbing.

Automake shies away from modules. Is the first method really
necessary, to work round (broken) csh?

[...]

        Due to the current implementation on some operating systems,
        when you use the glob() function or its angle-bracket alias in
        a scalar context, you may cause a leak and/or unpredictable
        behavior. It's best therefore to use glob() only in list
        context.

Which the patch is careful to do.
???

-- 

        http://altern.org/vii

Reply via email to