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

Re: The tricky issue of do()

Thread Previous | Thread Next
From:
Matt S Trout
Date:
March 29, 2017 21:52
Subject:
Re: The tricky issue of do()
Message ID:
20170329215220.GT12583@newagaton.scsys.co.uk
On Wed, Mar 29, 2017 at 12:38:29PM +0100, Dave Mitchell wrote:
> Does the following change to the 'do' entry in perlfunc look plausible to
> cope withe the facts that:
>     * dot is now removed from @INC by default;
>     * do now warns;

I would also make sure that the example uses ./ and instead of just

  do "stat.pl" failed, '.' is no longer in @INC

the warning should be

  do "stat.pl" failed, '.' is no longer in @INC, did you mean do "./stat.pl" ?

ala the "did you need to install" error on require() failure.

-- 
Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue

http://shadowcat.co.uk/blog/matt-s-trout/   http://twitter.com/shadowcat_mst/

Email me now on mst (at) shadowcat.co.uk and let's chat about how our CPAN
commercial support, training and consultancy packages could help your team.

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