F
Franklin Lee
Hi all,
I met below problem.
When first run my program, I will load my own lib, such as
/opt/myapp/lib1/mylib.pm.
code:
push(@INC, "/opt/myapp/lib1");
require mylib;
......
In the middle of my program, I will create new lib, such as
/var/tmp/myapp/lib/mylib.pm.
This file is new lib file I should use and contain same functions as
/opt/myapp/lib1/mylib.pm
Now I want to use the functions in /var/tmp/myapp/lib/mylib.pm instead of
/opt/myapp/lib1/mylib.pm
Then how should I do?
Thank you!
Franklin
I met below problem.
When first run my program, I will load my own lib, such as
/opt/myapp/lib1/mylib.pm.
code:
push(@INC, "/opt/myapp/lib1");
require mylib;
......
In the middle of my program, I will create new lib, such as
/var/tmp/myapp/lib/mylib.pm.
This file is new lib file I should use and contain same functions as
/opt/myapp/lib1/mylib.pm
Now I want to use the functions in /var/tmp/myapp/lib/mylib.pm instead of
/opt/myapp/lib1/mylib.pm
Then how should I do?
Thank you!
Franklin