Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Hosting Provider updated Perl !!

by davies (Prior)
on Jun 18, 2020 at 16:43 UTC ( [id://11118240]=note: print w/replies, xml ) Need Help??


in reply to Hosting Provider updated Perl !!

One of the updates to Perl changed a default. Perl used to default to searching the current directory for modules, but no longer does so. If you are getting errors suggesting modules are missing, you might try adding use lib '.'; to the code that has the problem. But you will get better answers if you show that code and the errors, and may find it yourself if you try to prepare a SSCCE (http://sscce.org).

Regards,

John Davies

Replies are listed 'Best First'.
Re^2: Hosting Provider updated Perl !!
by ikegami (Patriarch) on Jun 19, 2020 at 01:55 UTC

    No, don't do that. "." is not the script's directory. You want

    use FindBin qw( $RealBin ); use lib $RealBin;

      Thanks. I'll put that in my toolkit for next time.

      Regards,

      John Davies

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-19 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found