develooper Front page | perl.perl5.porters | Postings from February 2017

Re: The tricky issue of do()

Thread Previous | Thread Next
From:
Dan Book
Date:
February 24, 2017 17:48
Subject:
Re: The tricky issue of do()
Message ID:
CABMkAVW3N=Pj4YptvncT5=-=d6S+n8ooQKy6WW3SkEuikeVpQw@mail.gmail.com
A better fix is to "do './foo.pl'" so that do does not search @INC at all.
(it doesn't if the filename starts with /, ./, or ../)

On Fri, Feb 24, 2017 at 11:45 AM, David Nicol <davidnicol@gmail.com> wrote:

>
> the fix, when you upgrade and all your scripts break because . isn't in
> do's search path anymore, is "use lib '.'" is it not?
> Is that in the upgrade notes?
>
>
> --
> "Have you taken yourself seriously today?" -- the gravity clown
>

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