in reply to Re: Using perlclass 'methods'
in thread Using perlclass 'methods'
I don't have this new perl version to experiment. But I would expect that WITHIN a class calling a method name would automatically assume it is $self->ratio() (C++ and Java do that). If this is not the case, then why not dispensing the "usual" message: Undefined subroutine &main::ratio. It seems to me this class feature is half-baked and with old materials. And will lead to confusion in debugging.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Using perlclass 'methods'
by hippo (Archbishop) on Jul 18, 2024 at 09:26 UTC | |
by bliako (Abbot) on Jul 18, 2024 at 12:50 UTC | |
Re^3: Using perlclass 'methods'
by Arunbear (Prior) on Jul 18, 2024 at 10:31 UTC | |
by parv (Parson) on Jul 18, 2024 at 11:00 UTC | |
Re^3: Using perlclass 'methods'
by haj (Vicar) on Jul 18, 2024 at 10:47 UTC | |
by bliako (Abbot) on Jul 18, 2024 at 12:54 UTC |