in reply to Re: 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
It's definitely possible to tell in which package a sub was declared.
I saw it in the book perlhacks and IIRC it's available in B
The problem I see is that My:: is global, you would need the hint hash to restrict it's effect only to the file importing My.
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^3: Making it clearer to say that a sub is defined within current package
by Eily (Monsignor) on Apr 11, 2019 at 15:38 UTC | |
by LanX (Saint) on Apr 11, 2019 at 15:45 UTC | |
by Eily (Monsignor) on Apr 11, 2019 at 15:54 UTC | |
by LanX (Saint) on Apr 11, 2019 at 16:02 UTC | |
by Eily (Monsignor) on Apr 11, 2019 at 16:08 UTC | |
| |
|
Re^3: Making it clearer to say that a sub is defined within current package
by LanX (Saint) on Apr 11, 2019 at 16:43 UTC |