in reply to Re: newbie question: can't use my own lib in crob job
in thread newbie question: can't use my own lib in crob job
use File::Basename; my $cwd = dirname $0; my $libpath = $cwd."/lib"; require "$libpath/My/Ownmodule.pm";
it is work normally. And putting "require File::Basename;" inside the BEGIN block can't solve the problem
What is the difference between "require" and "use" ? Are there any disadvantage to use "require" to replace "use" ?
I am in doubt whether there are any other method can make me to use "use lib "xxxx"thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: newbie question: can't use my own lib in crob job
by Anonymous Monk on Mar 30, 2004 at 04:19 UTC | |
by Anonymous Monk on Mar 30, 2004 at 08:11 UTC | |
by Anonymous Monk on Mar 30, 2004 at 08:25 UTC | |
by Anonymous Monk on Mar 30, 2004 at 08:57 UTC |