develooper Front page | perl.perl5.porters | Postings from June 2008

Re: [perl #56348] [PATCH] glob() with spaces - documentation unclear

Thread Previous | Thread Next
Paul Fenwick
June 25, 2008 18:42
Re: [perl #56348] [PATCH] glob() with spaces - documentation unclear
Message ID:
G'day Ed / p5p,

Ed Avis (via RT) wrote:

> But this is obscure.  The special treatment of space characters should
> be there in the main glob() documentation, and it doesn't need to hark
> back to the days of perl 5.6.  It could mention that
> File::Glob::bsd_glob is a safe alternative that won't trip up on
> spaces.

I agree!  I've attached a git-ish patch that adds to the documentation.

> Ideally, a space character in the pattern passed to glob() would be a
> warning.

I disagree here, since I use glob splitting on spaces as a feature.  I 
regularly find myself writing glob('*.c *.h') and similar space-separated 



Paul Fenwick <> |
Director of Training                   | Ph:  +61 3 9354 6001
Perl Training Australia                | Fax: +61 3 9354 2681

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About