in reply to Messing with %INC.
Well, this is certainly nicer than opening and reading a file full of code and then doing an eval on the code. Is there any way, though, that you could reread a configuration file that changes the behavior of the program and select among definitions of the routine?
Is this specifically a system designed to handle code plugins that are maintained separately and reload those while running? What you have is a fairly clean and straightforward way to do that I think. If those other files are not separately managed, though, I'd say write all your routines out and choose them dynamically through a reference rather than redefining them this way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Messing with %INC.
by Theodore (Hermit) on Apr 24, 2014 at 13:46 UTC | |
by Anonymous Monk on Apr 24, 2014 at 14:15 UTC | |
by Theodore (Hermit) on Apr 24, 2014 at 14:38 UTC |