in reply to Re^4: Can I add methods to an existing object?
in thread Can I add methods to an existing object?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Can I add methods to an existing object?
by educated_foo (Vicar) on Apr 03, 2009 at 17:39 UTC | |
by Jenda (Abbot) on Apr 04, 2009 at 13:46 UTC | |
by linuxer (Curate) on Apr 03, 2009 at 17:47 UTC | |
|
Re^6: Can I add methods to an existing object?
by Your Mother (Archbishop) on Apr 03, 2009 at 17:58 UTC |