in reply to Re^5: Making it clearer to say that a sub is defined within current package
in thread Making it clearer to say that a sub is defined within current package
What are you talking about?
I don't want to collide with any other product which is using My:: for its own purpose. Of course does the caller change.
But any magic should be restricted to the local scope!
Anyway reserving the Namespace on CPAN would be needed.
another idea would be using a lexical object, and the method call would be channeled through AUTOLOAD.
my $mysubs = new Mysubs; $mysubs->xyz();
this could indeed work without polluting other packages and the runtime effects would become obvious by the ->arrow .
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Making it clearer to say that a sub is defined within current package
by Eily (Monsignor) on Apr 11, 2019 at 16:08 UTC | |
by LanX (Saint) on Apr 11, 2019 at 16:13 UTC |