probably a weird question, but bear with me (-: when Perl loads a module using 'use', this is a compile time directive, and assuming this module doesn't use 'require' anywhere in this module, can I launch a script which 'uses' that module and while the script ruins erase the module from the HDD and be sure that the module is all loaded into the memory? (can call all of its methods and such...)
Thanks,
Yes, you can. Perl compiles sources into internal data structure (parse tree) before running it, and it doesn't work with .pm files at runtime. So removing modules from disk is safe after the script has been compiled and successfully launched.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With