> use CGI::Application::Plugin::ValidateRM (qw/check_rm/);
versus something like
$app->load_plugin('ValidateRM', qw(check_rm));
Mark Stosberg wrote:
Hello, I have a preview of CGI::Application::Plugin::ValidateRM if you are interested. It's mostly a name change. I did change one other thing: I no longer export the methods by default. So this:use CGI::Application::ValidateRM;becomes use CGI::Application::Plugin::ValidateRM (qw/check_rm/); This change adheres better with the Exporter recommendation to not export anything by default. It should also make it easier for maintenance programmers, who see the check_rm() method, and wonder where the the fsck it came from. This is name space management design I'm proposing as a standard for other plug-in writers as well. Oh, I almost forgot the link: http://mark.stosberg.com/perl/CGI-Application-Plugin-ValidateRM-1.20.tar.gz I do plan to keep the code on CPAN under the old name for now, withdisclaimer added that the "plugin" version is recommended.Unless there are concerns about this design, I'll make this release formal in a couple of days. Mark
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.