develooper Front page | perl.perl5.porters | Postings from December 2012

Re: [perl #116192] Small bug in include directory slash interpretation

Thread Previous | Thread Next
From:
wolfsage
Date:
December 28, 2012 17:18
Subject:
Re: [perl #116192] Small bug in include directory slash interpretation
Message ID:
CAJ0K8bjbQhHrwfVkASb6U_eUQbqEhs29ArBXz0en3UKpvBbwpA@mail.gmail.com
On Thu, Dec 27, 2012 at 3:54 PM, Victor Efimov via RT <
perlbug-followup@perl.org> wrote:

> .. or even better if (dirlen && *(tmp-1) != '/') { ... }
>
>
Right now '/' is added whether or not dirlen is > 0, so (if !dirlen ||
*(tmp-1) != '/') would continue to behave the same.

if (dirlen && ...) would change that behavior.

-- Matthew Horsfall (alh)

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