![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re^2: Can't locate module in @INC when executing script over SSHby Leudwinus (Scribe) |
on Jan 27, 2023 at 19:39 UTC ( #11149954=note: print w/replies, xml ) | Need Help?? |
Thank you for taking the time to reply to help me out! Adding use local::lib did not work unfortunately. Even though I have local::lib installed on the remote machine, I now get this error:
but what did end up solving it was to replace this line: use lib "/home/user/perl5/lib"; with this line: use lib "/home/user/perl5/lib/perl5"; I do include both the use strict; and use warnings; pragmas in all of my programs but omitted them here for clarity and brevity. Perhaps I'll include them in the future to propagate better coding hygiene! Edited to add: This solution still feels "off" as it isn't very portable. So any other suggestions would still be appreciated.
In Section
Seekers of Perl Wisdom
|
|