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

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

Thread Previous | Thread Next
From:
Paul Fenwick
Date:
June 25, 2008 18:42
Subject:
Re: [perl #56348] [PATCH] glob() with spaces - documentation unclear
Message ID:
4862F3D9.5010105@perltraining.com.au
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 
patterns.

Cheerio,

	Paul

-- 
Paul Fenwick <pjf@perltraining.com.au> | http://perltraining.com.au/
Director of Training                   | Ph:  +61 3 9354 6001
Perl Training Australia                | Fax: +61 3 9354 2681

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About