Pablo Fischer wrote:

> Thanks!
>
> After sending my question I found in a website the topic of 'private' methods,
> and shows code like this:
>
> my $method_name = sub {
>         my $this = shift;
>
> _blablabla_
> };
>
> And to access it :
>
> $this->$method_name("Arg1");
>
> Now, this it really works for 'private' methods?
>

Perl has no private methods.  Only polite conventions concerning which methods
should be called from outside the pm file.  One way to communicate this is simply
to document only public methods using the emedded donumentation format, and use
standard comments for any necessary explanation of internal methods.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to