That's an interesting idea. I kind of try to avoid using a lot of files for these scripts, but this is indeed something to consider.
Possibly the main wakautils.pl could still contain all the code, but the modules could optionally override the functions, so you can just drop in one or two modifications that way. How about that?
Putting related code into separate files and loading them as modules at runtime instead of clumping all functionality together in the same file.
>>2
I like the idea of drop-in modifications. Easier to identify the exact cause of a problem if something breaks.
> Putting related code into separate files and loading them as modules at runtime instead of clumping all functionality together in the same file.
Sounds pretty awesome.
>Possibly the main wakautils.pl could still contain all the code, but the modules could optionally override the functions, so you can just drop in one or two modifications that way. How about that?
how about http://hotaru.freelinuxhost.com/w/src/wakautils_m2.zip ?
That should work, but it's just a little bit inelegant. I'm gonna have to try and see if I can figure out some better trick to do that.
>just a little bit inelegant
lol understatement