And both are the Right Way to alias a function. Warnings are hints, not laws.
I didn't write, that it's a wrong way. And I didn't write about warnings being laws. I like to get rid of warnings without writing no warnings;, so I mentioned another way which doesn't show a warning.
Is it bad to look for ways to avoid warnings without writing no warnings;?
sub foo::bar { my ( $self ) = shift; $self->foo(@_); }
So, is that so much worse than aliasing the function?
All in all, I I don't know how to handle your answer.
What's your intention?
Just information, that the aliasing was done right?
Should I consider something else?
Thanks in advance for your explanation.
In reply to Re^5: Can I add methods to an existing object?
by linuxer
in thread Can I add methods to an existing object?
by pileofrogs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |