On 11-04-28 12:20 AM, Uri Guttman wrote:
methods starting with _ are conventionally private
methods.
Actually, I think they are "protected" methods. Those methods that
should not be access by other objects but can be by their child classes.
A truly private method can be written as a sub reference:
my $private_method = sub {
# good stuff goes here
};
Since $private_method can not be access outside of the file, it is
completely private.
--
Just my 0.00000002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/