in reply to FastCGI and mod_perl's Apache::Reload equivalent???

if ( -M "/path/to/lib/MyModule.pm" < 0 ) { require MyModule; MyModule->import(qw[ :mytag ]); }
That will not work as require will refuse to reload your module if it is already loaded.

You have to delete the corresponding entry in the %INC hash before you do a new require MyModule.

But do have a look at the source code of Apache::Reload. Other than the way to bind it into the webserver's request cycle, I think you can almost fully re-use Apache::Reload's code.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James