From: Wil C. <wc...@na...> - 2002-10-26 02:45:47
|
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 : >=20 > do 'mymodule-lib.pl'; >=20 > and in mymodule-lib.pl, lines like : >=20 > do '../web-lib.pl'; > &init_config(); >=20 > This sets %config just fine for me. require shouldn't be used in this cas= e, because > Perl will not actually re-read web-lib.pl if it thinks that it has been r= equire'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? Wil --=20 Wil Cooley wc...@na... Naked Ape Consulting http://nakedape.cc * * * * Linux, UNIX, Networking and Security Solutions * * * * QCSNet http://www.qcsn.com * * * * T1, Frame Relay, DSL, Dial-up, and Web Hosting * * * * |