in reply to Private method variations
An alternative I prefer better is to make it an attribute. Something along the lines of:
sub greet_world : no_override { my $self = shift; my ($greeting) = @_; print "$greeting, world\n"; }
Of course, I don't know a lot about attributes, but that would make more syntactical sense, to me ...
Update: Would Attribute::Protected do this?
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Private method variations
by adrianh (Chancellor) on Mar 01, 2004 at 08:58 UTC | |
Re: Re: Private method variations
by flyingmoose (Priest) on Mar 01, 2004 at 05:33 UTC | |
by stvn (Monsignor) on Mar 01, 2004 at 17:54 UTC |