17 Apr 2017 10:19:35 UTC
- Distribution: Module-Reload
- Module version: 1.11
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (2459 / 1 / 0)
- KwaliteeBus factor: 2
- 75.00% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (10.48KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Module::Reload - Reload %INC files when updated on disk
When Perl pulls a file via
require, it stores the filename in the global hash
%INC. The next time Perl tries to
requirethe same file, it sees the file in
%INCand does not reload from disk. This module's handler iterates over
%INCand reloads the file if it has changed on disk.
Set $Module::Reload::Debug to enable debugging output.
A growing number of pragmas (
fields, etc.) assume that they are loaded once only. When you reload the same file again, they tend to become confused and break. If you feel motivated to submit patches for these problems, I would encourage that.
Module::Reload::Selective is like this module, but lets you control which modules will be reloaded.
again provides a slightly different mechanism for reloading changed modules, where you have to explicitly decide which modules to reload.
perldoc require for details of how
Doug MacEachern & Joshua Pritikin
Now maintained by Neil Bowers <firstname.lastname@example.org>
This software is copyright (c) 1997-1998 Doug MacEachern & Joshua Pritikin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Module::Reload, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Module::Reload
For more information on module installation, please visit the detailed CPAN module installation guide.