develooper Front page | perl.perl5.porters | Postings from October 2016

Re: [perl #127810] Provide -Dfortify_inc Configure option to remove. from @INC

Thread Previous
From:
Sawyer X
Date:
October 20, 2016 20:37
Subject:
Re: [perl #127810] Provide -Dfortify_inc Configure option to remove. from @INC
Message ID:
d46d204e-e6fd-f26e-91c1-54de96ffc8a8@gmail.com
On 10/20/2016 08:43 PM, Todd Rinaldo via RT wrote:
> On Sun Aug 14 01:35:18 2016, hmbrand wrote:
>> just took a snippet, but it should never be set to ''
>>
>> The default should be 'undef' or 'define', not ''
>>  ... *snip* 
> Bump. 
>
> As I understand things per our discussion at YAPC::EU, this patch should be ready for merge but requires a wave of the metaconfig wand once merged. 
>
> I've also rebased on blead and removed some of the things Father Chrysostomos was worried about in the final commit. 


While we're at it, mst also noticed another issue: "do" doesn't work on
current directory, as one might expect, but relative to @INC.

$ echo "print 'hello'" > eg.pl ; perl -le 'do "eg.pl";'
hello

$ echo "print 'hello'" > eg.pl ; perl -le 'pop @INC if $INC[-1] eq ".";
do "eg.pl";'
(no output)

However, you can still do:

$ echo "print 'hello'" > eg.pl ; perl -le 'pop @INC if $INC[-1] eq ".";
do "./eg.pl";'
hello

Thread Previous


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