Am I better to run a seperate CGI from the plugin menu, or turn it into an internal sub of my plugin?
Example:
install.pm
myplugin.pm
catdepth.cgi <- repair function
Menu:
Installed Plugins
My Plugin
Menu Item 1
Repair Function <- repair function
If it is better run this as a bundled cgi, then how do I call this file from my sub?
sub repair {
# -------------------------------------------------------------------
# This subroutine will get called whenever the user clicks
# on 'repair' in the admin menu. Remember, you need to print
# your own content-type headers; you should use
#
# print $IN->header();
#
}
Thanks again!
Example:
install.pm
myplugin.pm
catdepth.cgi <- repair function
Menu:
Installed Plugins
My Plugin
Menu Item 1
Repair Function <- repair function
If it is better run this as a bundled cgi, then how do I call this file from my sub?
sub repair {
# -------------------------------------------------------------------
# This subroutine will get called whenever the user clicks
# on 'repair' in the admin menu. Remember, you need to print
# your own content-type headers; you should use
#
# print $IN->header();
#
}
Thanks again!