in reply to Re: perl module subroutine
in thread perl module subroutine

> There are no private methods/subroutines in Perl.

Just for completeness, one can easily achieve the effect of "private subs" by using lexical coderefs.

{ package MyClass; my $private= sub { ... }; $private->(); # call as private function }

Sorry for nitpicking :)

UPDATE:

and of course

$self->$private(); # call as private method

to pass thru $self as first argument.

Cheers Rolf