in reply to Re^3: "symbol lookup error" message help
in thread "symbol lookup error" message help
Let's say I have a script that starts as follows:
#!/usr/bin/perl use strict; use warnings; use lib '/home/foo/perl_modules/5.32.1/lib/perl5' use List::MoreUtils qw(uniq);
Assume on one machine /usr/bin/perl points to perl version 5.32.1. Also assume the List::MoreUtils module is installed in /home/foo/perl_modules/5.32.1/lib/perl5 using perl 5.32.1.
Now assume on another machine /usr/bin/perl points to perl 5.26.3. Also assume the List::MoreUtils module is installed in /home/foo/perl_modules/5.26.3/lib/perl5 using perl 5.26.3.
Is there a way to manage this such that the script can be run on both machines, each with their respective perl versions, without having to make 2 copies of the script, one for each module path?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: "symbol lookup error" message help
by choroba (Cardinal) on Feb 07, 2023 at 19:45 UTC |