Also the fact that methods are just subs in a package is more of a burden than a blessing: it makes introspection of classical Perl 5 OO quite impossible, because you can never know if a sub is intended to be used as a method or a sub.
That's what documentation is for.
Can you suggest one realistic scenario where there is a need to decide between a subroutine and a method at runtime?
Please note. This is a genuine question. I can't think of one, but that doesn't mean that there isn't one.
In reply to Re^2: In praise of Perl's object system.
by BrowserUk
in thread In praise of Perl's object system.
by DStaal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |