Is it possible to call a function in a cgi script from a plugin's PM file?
Example...
File: plugin.cgi
my $args = $IN->get_hash;
}
Then from MyPlugin.pm can I call some_function() and pass arguments?
File: MyPlugin.PM
some_function(arg1, arg2, etc);
}
Eventually to use in a template like:
<%Plugins::MyPlugin::wrapper_function($arg1, $arg2, $etc)%>
???
Currently I have resorted to making a local copy of the cgi subroutine
in the .PM file, but it seems seems redundent to me me. :-)
Thanks for any help.
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
Example...
File: plugin.cgi
Code:
sub some_function { my $args = $IN->get_hash;
}
Then from MyPlugin.pm can I call some_function() and pass arguments?
File: MyPlugin.PM
Code:
sub wrapper_function { some_function(arg1, arg2, etc);
}
Eventually to use in a template like:
<%Plugins::MyPlugin::wrapper_function($arg1, $arg2, $etc)%>
???
Currently I have resorted to making a local copy of the cgi subroutine
in the .PM file, but it seems seems redundent to me me. :-)
Thanks for any help.
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com