in reply to Re: 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

What is the difference between "require" and "use" ? Are there any disadvantage to use "require" to replace "use" ?
perldoc -f use
perldoc -f require

I am in doubt whether there are any other method can make me to use "use lib "xxxx"
Sorry, can you translate that to English?
  • Comment on Re: Re: Re: newbie question: can't use my own lib in crob job

Replies are listed 'Best First'.
Re: Re: Re: Re: newbie question: can't use my own lib in crob job
by Anonymous Monk on Mar 30, 2004 at 08:11 UTC

    I am so sorry because my native language is not English.So I can't express my question exactly.

    My question is : is it possible that use "use lib" in my cron job?

    I don't know whether I express clearly.

    thanks!
      How about this
      use lib "$ENV{HOME}/lib";
      and then you tell users they must keep the module in ~/lib
Re: Re: Re: Re: newbie question: can't use my own lib in crob job
by Anonymous Monk on Mar 30, 2004 at 08:57 UTC

    I am so sorry English is not my native language.So I can't express my question exactly.

    My question is:

    How can I use use lib "xxx/mylib" in my script if I don't use require "xxx/mylib/sss.pm"? I just want to know whether it is possible .

    thanks!