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

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

Thread Previous | Thread Next
From:
Ben Morrow
Date:
June 25, 2008 19:33
Subject:
Re: [perl #56348] [PATCH] glob() with spaces - documentation unclear
Message ID:
73abj5-o7j.ln1@osiris.mauzo.dyndns.org

Quoth pjf@perltraining.com.au (Paul Fenwick):
> 
> 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.

Since it recently came up on clpmisc :), it's probably worth mentioning
that glob omits files beginning with '.' on all OSen, even those which
don't treat such files as 'hidden'. Also, a fuller description of the
patterns used (rather than 'it's what csh does') might be useful, since
a lot of Perl programmers won't be familiar with csh nowadays
(thankfully :) ).  I realise this is all documented in File::Glob, but
at least an explicit mention that that is the place to look for the
pattern spec would be useful.

Ben

-- 
                Outside of a dog, a book is a man's best friend.
                Inside of a dog, it's too dark to read.
ben@morrow.me.uk                                                  Groucho Marx

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