There's more than one way to do things | |
PerlMonks |
Re^2: Making it clearer to say that a sub is defined within current packageby LanX (Saint) |
on Apr 11, 2019 at 15:32 UTC ( [id://1232448]=note: print w/replies, xml ) | Need Help?? |
>
My::Dumper() would both call Data::Dumper::Dumper() 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
In Section
Seekers of Perl Wisdom
|
|