On Thu, 05 Aug 2004 16:59:50 -0400, Cees Hek wrote:

Hi Cess

> sub auth : CGIAppPluginMethod {
> my $self = shift;
> # do some cool stuff
> }
> sub _private_auth {
> # so some more cool stuff
> }
> In this case the 'auth' method would be exported and made
> available, but
> the _private_auth method would not.
> This way you can still keep some methods private in the plugin.
> All the
> C::A::Plugin module does is look for all subroutines that have the
> CGIAppPluginMethod attribute set and exports them to the callers
> namespace.

Or, what if the name of the attribute, here CGIAppPluginMethod, was
actually the name of the namespace into which the sub was imported?

--
Ron Savage, [EMAIL PROTECTED] on 9/08/2004. Room EF 312
Deakin University, 221 Burwood Highway, Burwood, VIC 3125, Australia
Phone: +61-3-9251 7067, Fax: +61-3-9251 7604
http://www.deakin.edu.au/~rsav



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to