> Are any of you doing this? Do I have to turn each of this scripts into
> mini CGI::Applications? I suppose this wouldn't be a huge deal, but it
> would be nice to have another option. I'm not new to using, but
> relatively new to creating, OOP code.
Can you make those methods into their own, independant modules, that both
yoru SuperClass and your cron scripts make use of?
So:
package SuperClass;
use base CGI::Application;
use Package::Functions;
sub do_xyzzy{
my $self = shift;
Package::Functions->xyzzy($self->param('Data'));
}
-=And also=-
#cron job
use Package::Functions;
Package::Functions->xyzzy("some data here");
And then when you need to change the functions, just update
Package::Functions;
(The above example does not have Package::Functions becoming an instance.
Whether or not you would want to do that depends largely on taste and what
you are having those functions do.)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]