in reply to How do plugins work?
If you want specifics, please elaborate.
update...
here's a very simple example:
and this in Some/Module.pm:#!perl # process input & args... my $plugin_name = 'Some::Module'; eval "use $plugin_name;" or die "can't load module"; my $output = $plugin_name->process($formatted_input); # format output print $formatted_output;
package Some::Module; sub process { my ($package,$formatted_input) = @_; # do stuff; return $output; }
|
|---|