Now this load_plugin method does not support arguments. It would be best to support arguments like my ($class, $plugin_name, @args) = @_, and register plugins by $plugin_package->register( $class, @args );, so plugin developer can have arguments to fine control behavior of their plugins.
See https://github.com/EntropyOrg/p5-Devel-IPerl/blob/0f9fe2f1470a347705b5ce5bac7fa8fb40904869/lib/IPerl.pm#L40
Now this load_plugin method does not support arguments. It would be best to support arguments like
my ($class, $plugin_name, @args) = @_
, and register plugins by$plugin_package->register( $class, @args );
, so plugin developer can have arguments to fine control behavior of their plugins.One use case is https://github.com/pablrod/p5-Devel-IPerl-Plugin-Chart-Plotly/issues/7