From: Jamie C. <jca...@we...> - 2002-10-26 04:56:58
|
Wil Cooley wrote: > On Fri, 2002-10-25 at 17:28, Jamie Cameron wrote: > > > >>What I usually have in my useradmin_update.pl script is a line at the top like : >> >>do 'mymodule-lib.pl'; >> >>and in mymodule-lib.pl, lines like : >> >>do '../web-lib.pl'; >>&init_config(); >> >>This sets %config just fine for me. require shouldn't be used in this case, because >>Perl will not actually re-read web-lib.pl if it thinks that it has been require'd before! > > > Should I infer then that I should be able to use "do" instead of > 'require' in my useradmin_update.pl and have it work, or is there some > Perl black magic I'm missing that makes chained "do"'s somehow > different? No black magic .. you should be able to use do '../web-lib.pl'; &init_config(); in your useradmin_update.pl script with no problems. - Jamie |