How do I load a module at runtime in Perl? -


Is it possible to load the module on runtime in Perl? I tried the following, but it did not work. I have written the following in the program:

  Some_module is required; Import some_module ("some_func"); Some_func;  

  in #fu pm Package fu; Strict use; Use warnings; Use Base qw (Exporter); Our @EXPORT = qw (bar); Sub-time {print "bar (@_) \ n"} 1; # Strict use in your script; Use warnings; Fu is required; Foo-> Import ('bar'); Bar (1, 22, 333);  

Comments