On Fri, Oct 31, 2008 at 01:21:23PM -0700, Tracy Reed spake thusly: > 6. It contains stuff like: > > # foreign_call(module, function, [arg]*) > # Call a function in another module > sub foreign_call > {
Jamie Cameron, author of webmin, says: > Yeah, those functions are admittedly odd - I created them years ago > to allow cross-module function calls, before I know about Perl modules > and such. > > Basically, foreign_require sets up the context for another Webmin module > to be called from the current one. The idea is to use it like so : > > foreign_require("useradmin", "user-lib.pl"); > @users = useradmin::list_users(); > etc.. So all of that complication is there because when he wrote webmin he didn't know about perl modules and they have never migrated over to using them. -- Tracy Reed http://tracyreed.org
pgpxvZGgGLQpC.pgp
Description: PGP signature
-- KPLUG-LPSG@kernel-panic.org http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg