http://www.perlmonks.org?node_id=340817


in reply to newbie question: can't use my own lib in crob job

How about just
use lib '/full/path/to/perllib'; use My:Ownmodule;

Replies are listed 'Best First'.
Re: Re: newbie question: can't use my own lib in crob job
by iwanthome (Beadle) on Mar 30, 2004 at 02:26 UTC

    I don't know the exactly full path of the lib because I can't force other user install the lib to the desired path.

    thanks!

      Are you concerned about making this easy to install for other users? While that's a good thing, I think you're seriously overthinking things. If users have to set up a cron job to make this work, they'll have to edit code anyway. Just tell them to install the module via the normal mechanism or add a use lib line to their code.

      (As a side note, prepending "newbie" to your post subjects is useless; it adds no information of value.)

        thanks for your advice.I add "newbie" to my post subjects because I think my question is very stupid.I will remove this later.