Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^5: 'do' command is dead? Surely not?

by haukex (Bishop)
on May 19, 2017 at 16:27 UTC ( #1190648=note: print w/replies, xml ) Need Help??

in reply to Re^4: 'do' command is dead? Surely not?
in thread 'do' command is dead? Surely not?

Based on this post by the OP it sounds like this is the problem!

Just to add a little info: Unfortunately the 5.24.1 doc is not up on yet, so here is the link to the source. It seems that do's mechanism of searching @INC was impacted by this change - some interesting further reading for the curious is in the P5P threads The tricky issue of do() and [perl #131069] do file: Add './' in additional cases. Update: So as far as I understand it, the issue might be improved upon in v5.26 when that gets released.

Replies are listed 'Best First'.
Re^6: 'do' command is dead? Surely not?
by ACI (Acolyte) on May 19, 2017 at 17:13 UTC

    At the start of your first-linked P5P thread, haukex:

    Which means simply saying "welp, . isn't in @INC anymore" is going to leave a vast number of broken scripts, most of them likely the ones whose users are least knowledgable about perl (do '' is very common baby perl, I think).

    Fair comment!

    I'm likely to solve it by automating a massive search-and-replace, inserting a './' before all filenames. (Might just back up first!). I think I know enough to know that the removal of '.' from @INC is best not over-ridden!

    Many thanks to everyone who contributed to this. You are a wise and, yes, very attractive bunch of people!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1190648]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2020-09-18 10:29 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (112 votes). Check out past polls.