I'd like to load a contents of a file to a variable then "use it" as a module during runtime. Is that possible?
Thanks for any help!
open(F, $_); my $f = do { local $/; <F> }; close(F); "use or load" $f as a module, perhaps eval somehow?
In reply to Use variable as a module during runtime. by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |