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

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

by haukex (Archbishop)
on May 19, 2017 at 16:27 UTC ( [id://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 http://perldoc.perl.org 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 'config.pl' 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found