NAME
Taco::LibLib.pm - keep Perl files fresh
SYNOPSIS
Under normal mod_perl, Perl files will only get compiled when the server starts up. Any later changes you make to code files will not take effect until you restart the server.
To avoid this behavior, put LibLib::register($file); instead of require $file; in your code.
DESCRIPTION
register()
Usage: &Taco::LibLib::register('file1.pl', 'file2.pl', ...);
Use this function instead of "require 'file1.pl'", and your files will be magically compiled again whenever they get modified.
You do not need to call freshen_codefiles() after register_codefiles(). Files will be freshened automatically.
freshen()
Usage: &Taco::LibLib::freshen();
Checks to see whether any code files have been modified since we last pulled them in. If so, we pull them in again.
AUTHOR
Ken Williams (ken@forum.swarthmore.edu)
Copyright (c) 1998 Swarthmore College. All rights reserved.