Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Hosting Provider updated Perl !!

by davies (Prior)
on Jun 18, 2020 at 16:43 UTC ( #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 (Pope) 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
Node Status?
node history
Node Type: note [id://11118240]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2020-08-13 13:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (73 votes). Check out past polls.

    Notices?